@Test
public void shouldProperlyMapNetworkAddressIntoNetworkAddressModel() throws Exception {

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