modified to be compatible with jdk 1.6; fixed spacing on TestMojo