### Question:
SourceConfiguration extends BaseConfiguration { public int getPort() { return port; } SourceConfiguration(ConfigurationContext configurationContext,
                               TransportInDescription description,
                               Scheme scheme,
                               WorkerPool pool,
                               PassThroughTransportMetricsCollector metrics);  SourceConfiguration(WorkerPool pool,PassThroughTransportMetricsCollector metrics); void build(); HttpParams getHttpParams(); IOReactorConfig getIOReactorConfig(); HttpProcessor getHttpProcessor(); HttpResponseFactory getResponseFactory(); String getHostname(); int getPort(); SourceConnections getSourceConnections(); TransportInDescription getInDescription(); Scheme getScheme(); String getServiceEPRPrefix(); String getCustomEPRPrefix(); HttpGetRequestProcessor getHttpGetRequestProcessor(); boolean getBooleanValue(String name, boolean def);  }### Answer:
@Test public void testGetPort() throws Exception { int port = sourceConfiguration.getPort(); Assert.assertNotNull("Host hasn't been initialized.", port); Assert.assertEquals("Port doesn't match with : " + PORT, PORT, port); }