Refactored Main.java and added methods to ServerStartITest.