### Question:
GetPaymentStatusResponse implements CustomContentTypeProvider { public boolean isResponseContentTypeJson() { return MediaType.APPLICATION_JSON.includes(responseContentType); }  boolean isResponseContentTypeJson(); @Override MediaType getCustomContentType();  }### Answer:
@Test void isResponseContentTypeJson_withJson() { GetPaymentStatusResponse getPaymentStatusResponse = new GetPaymentStatusResponse(TransactionStatus.ACSP, null, MediaType.APPLICATION_JSON, null, null); assertTrue(getPaymentStatusResponse.isResponseContentTypeJson()); }
@Test void isResponseContentTypeJson_withUtf8Json() { GetPaymentStatusResponse getPaymentStatusResponse = new GetPaymentStatusResponse(TransactionStatus.ACSP, null, MediaType.APPLICATION_JSON_UTF8, null, null); assertTrue(getPaymentStatusResponse.isResponseContentTypeJson()); }
@Test void isResponseContentTypeJson_withXml_shouldReturnFalse() { GetPaymentStatusResponse getPaymentStatusResponse = new GetPaymentStatusResponse(TransactionStatus.ACSP, null, MediaType.APPLICATION_XML, null, null); assertFalse(getPaymentStatusResponse.isResponseContentTypeJson()); }
@Test void isResponseContentTypeJson_withAll_shouldReturnFalse() { GetPaymentStatusResponse getPaymentStatusResponse = new GetPaymentStatusResponse(TransactionStatus.ACSP, null, MediaType.ALL, null, null); assertFalse(getPaymentStatusResponse.isResponseContentTypeJson()); }
@Test void isResponseContentTypeJson_withWildcardApplication_shouldReturnFalse() { GetPaymentStatusResponse getPaymentStatusResponse = new GetPaymentStatusResponse(TransactionStatus.ACSP, null, MediaType.parseMediaType("application/*"), null, null); assertFalse(getPaymentStatusResponse.isResponseContentTypeJson()); }