Serial Java application and test setup