JUnitTest and some helpful methods