TextServer extends Thread { public ConnectionInformation getConnectionInformation() throws UnknownHostException { final TextConnectionInformation remote = new TextConnectionInformation( port); remote.setCalledDevice(calledId); remote.setCallingDevice(callingId); return remote; } TextServer(final String hostname, final int serverPort);  TextServer(final int serverPort); void setAutoAcknowledge(final boolean value); void addTextListener(final TextListener textListener); ConnectionInformation getConnectionInformation(); @Override void run(); boolean isStarted(); void acknowledge(final int seq); void waitStarted(); void waitConnected(); void sendInput(final String input); void stopServer(); boolean isConnected();  }
@Test public void testGetConnectionInformation() { Assert.assertEquals(PORT, info.getPort()); }