@Test
public void shouldProperlyMapNetworkAddressIntoNetworkAddressEntity() throws Exception {

  NetworkAddress networkAddress = NetworkAddress.builder()
      .ip("192.168.24.33")
      .port(9991)
      .build();
  NetworkAddressEntity networkAddressEntity =
      networkAddressEntityDataMapper.transformInverse(networkAddress);
  assertThat(networkAddressEntity, notNullValue());
  assertThat(networkAddressEntity, instanceOf(NetworkAddressEntity.class));
  assertThat(networkAddressEntity.ip(), is("192.168.24.33"));
  assertThat(networkAddressEntity.port(), is(9991));
}