### Question:
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject  FooterPresenter(final View view); View getView(); void setup(final String url,
                      final String version);  }### Answer:
@Test public void testIsKieServerAccessibleWhenStatusCodeIs200() { when(response.getStatusCode()).thenReturn(200); assertTrue(presenter.isKieServerAccessible(response)); }
@Test public void testIsKieServerAccessibleWhenStatusCodeIs401() { when(response.getStatusCode()).thenReturn(401); assertTrue(presenter.isKieServerAccessible(response)); }
@Test public void testIsKieServerAccessibleWhenStatusCodeIs500() { when(response.getStatusCode()).thenReturn(500); assertFalse(presenter.isKieServerAccessible(response)); }