### Question:
ResultUtil { @Nullable public static String getResultByHttpStatus(int status) { if (status >= 200 && status < 300) { return "HTTP 2xx"; } if (status >= 300 && status < 400) { return "HTTP 3xx"; } if (status >= 400 && status < 500) { return "HTTP 4xx"; } if (status >= 500 && status < 600) { return "HTTP 5xx"; } if (status >= 100 && status < 200) { return "HTTP 1xx"; } return null; }  @Nullable static String getResultByHttpStatus(int status);  }### Answer:
@Test void getResult() { assertSoftly(softly -> { softly.assertThat(ResultUtil.getResultByHttpStatus(100)).isEqualTo("HTTP 1xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(199)).isEqualTo("HTTP 1xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(200)).isEqualTo("HTTP 2xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(299)).isEqualTo("HTTP 2xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(300)).isEqualTo("HTTP 3xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(399)).isEqualTo("HTTP 3xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(400)).isEqualTo("HTTP 4xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(499)).isEqualTo("HTTP 4xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(500)).isEqualTo("HTTP 5xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(599)).isEqualTo("HTTP 5xx"); softly.assertThat(ResultUtil.getResultByHttpStatus(600)).isNull(); softly.assertThat(ResultUtil.getResultByHttpStatus(20)).isNull(); softly.assertThat(ResultUtil.getResultByHttpStatus(0)).isNull(); softly.assertThat(ResultUtil.getResultByHttpStatus(-1)).isNull(); }); }