### Question:
HttpUtils { public static int getStatusFromResult(Result result, boolean success) { if (!success) { return Status.BAD_REQUEST; } else { return result.getStatusCode(); } }  static boolean isKeepAlive(HttpServerRequest request); static int getStatusFromResult(Result result, boolean success); static InputStream processResult(ServiceAccessor accessor, Context context, Renderable renderable,
                                            Result result); static String getContentTypeFromContentTypeAndCharacterSetting(String rawContentType); static boolean isPostOrPut(HttpServerRequest request); static final String CLOSE; static final String KEEP_ALIVE; }### Answer:
@Test public void testGetStatusFromResult() throws Exception { assertThat(HttpUtils.getStatusFromResult(new Result(Status.OK), false)).isEqualTo(Status.BAD_REQUEST); assertThat(HttpUtils.getStatusFromResult(new Result(Status.OK), true)).isEqualTo(Status.OK); }