@Test(expected = IllegalStateException.class) public void tryingToGetThePortNumberForANonRunningService() { app.port(); }
public int port() { if (server != null) { return server.getPort(); } else { throw new IllegalStateException(); } }
App { public int port() { if (server != null) { return server.getPort(); } else { throw new IllegalStateException(); } } }
App { public int port() { if (server != null) { return server.getPort(); } else { throw new IllegalStateException(); } } App();  App(LoadProfileRPCImpl loadProfileRPC); }
App { public int port() { if (server != null) { return server.getPort(); } else { throw new IllegalStateException(); } } App();  App(LoadProfileRPCImpl loadProfileRPC); void start(int port); void stop(); int port(); static void main(String[] args); }
App { public int port() { if (server != null) { return server.getPort(); } else { throw new IllegalStateException(); } } App();  App(LoadProfileRPCImpl loadProfileRPC); void start(int port); void stop(); int port(); static void main(String[] args);  }