### Question:
VertxServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage { @Override protected void applyStatusCode() { HttpStatus statusCode = getStatusCode(); if (statusCode != null) { delegate.setStatusCode(statusCode.value()); } } VertxServerHttpResponse(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeResponse(); @Override Mono<Void> writeWith(Path file, long position, long count);  }### Answer:
@Test public void shouldApplyStatusCode() { response.setStatusCode(HttpStatus.OK); response.applyStatusCode(); verify(mockHttpServerResponse).setStatusCode(200); }
@Test public void shouldNotApplyNullStatusCode() { response.applyStatusCode(); verify(mockHttpServerResponse, times(0)).setStatusCode(anyInt()); }