### Question:
BasicHttpHeadersProvider implements HttpHeadersProvider { @Override public HttpHeaders getHttpHeaders() { return headers; } BasicHttpHeadersProvider(final String authorization);  BasicHttpHeadersProvider(); @Override HttpHeaders getHttpHeaders(); @Override String toString(); static final String AUTHORIZATION_HEADER; }### Answer:
@Test public void test_getHttpHeaders_ContentTypeIsJson() { final HttpHeadersProvider objUnderTest = new BasicHttpHeadersProvider(); final HttpHeaders actualHttpHeaders = objUnderTest.getHttpHeaders(); assertNull(actualHttpHeaders.get(AUTHORIZATION_HEADER)); assertEquals(MediaType.APPLICATION_JSON, actualHttpHeaders.getContentType()); }
@Test public void test_getHttpHeaders_ContainAuthorizationHeader() { final HttpHeadersProvider objUnderTest = new BasicHttpHeadersProvider(BASIC_AUTH_VALUE); final HttpHeaders actualHttpHeaders = objUnderTest.getHttpHeaders(); assertEquals(Arrays.asList(BASIC_AUTH_VALUE), actualHttpHeaders.get(AUTHORIZATION_HEADER)); assertEquals(MediaType.APPLICATION_JSON, actualHttpHeaders.getContentType()); }