@Test public void itHasRealmInformation() throws Exception { assertThat(Credentials.CHALLENGE.getMetadata().getFirst(HttpHeaders.WWW_AUTHENTICATE)) .isEqualTo("Basic realm=\"Grendel\""); }
@Test public void itReturnsA401() throws Exception { assertThat(Credentials.CHALLENGE.getStatus()).isEqualTo(Status.UNAUTHORIZED.getStatusCode()); }