@Test
public void shouldProperlyMapNetworkAddressModelIntoNetworkAddress() throws Exception {

  NetworkAddressModel networkAddressModel = NetworkAddressModel.builder()
      .ip("192.168.1.45")
      .port(9999)
      .build();
  NetworkAddress networkAddress =
      networkAddressModelDataMapper.transformInverse(networkAddressModel);
  assertThat(networkAddress, notNullValue());
  assertThat(networkAddress, instanceOf(NetworkAddress.class));
  assertThat(networkAddress.ip(), notNullValue());
  assertThat(networkAddress.ip(), is("192.168.1.45"));
  assertThat(networkAddress.port(), is(9999));
}