### Question:
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); } VertxServerHttpRequest(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeRequest(); @Override String getMethodValue(); @Override Flux<DataBuffer> getBody(); @Override InetSocketAddress getRemoteAddress();  }### Answer:
@Test public void shouldGetNullRemoteAddress() { assertThat(vertxServerHttpRequest.getRemoteAddress()).isNull(); }
@Test public void shouldGetRemoteAddress() { SocketAddress original = SocketAddress.inetSocketAddress(8080, "localhost"); given(mockHttpServerRequest.remoteAddress()).willReturn(original); InetSocketAddress expected = new InetSocketAddress("localhost", 8080); assertThat(vertxServerHttpRequest.getRemoteAddress()).isEqualTo(expected); }