public List<SocketPortAllocation> getHostServerSocketPorts( String hostname ) {
    List<SocketPortAllocation> ports = hostServerSocketPortsMap.get( hostname );
    return ports == null ? Collections.emptyList() : Collections.unmodifiableList( ports );
  }
@Test
  public void getHostServerSocketPorts() {
    transformationMap.allocateServerSocketPort( 1, TEST_HOST, CLUSTERED_RUN_ID, TEST_TRANSFORMATION_NAME,
        TEST_SOURCE_SLAVE_NAME, TEST_SOURCE_STEP_NAME, TEST_SOURCE_STEP_COPY, TEST_TARGET_SLAVE_NAME,
        TEST_TARGET_STEP_NAME, TEST_TARGET_STEP_COPY );
    List<SocketPortAllocation> actualResult = transformationMap.getHostServerSocketPorts( TEST_HOST );

    assertNotNull( actualResult );
    assertEquals( 1, actualResult.size() );
  }