Junit copied here momentarily.
