@Test
public void shouldProperlyMapNetworkAddressEntityIntoNetworkAddress() throws Exception {

  NetworkAddressEntity networkAddressEntity = NetworkAddressEntity.builder()
      .ip("192.168.1.1")
      .port(8889)
      .build();
  NetworkAddress networkAddress = networkAddressEntityDataMapper.transform(networkAddressEntity);
  assertThat(networkAddress, notNullValue());
  assertThat(networkAddress, instanceOf(NetworkAddress.class));
  assertThat(networkAddress.ip(), notNullValue());
  assertThat(networkAddress.ip(), is("192.168.1.1"));
  assertThat(networkAddress.port(), is(8889));
}