### Question:
DefaultLightblueDiagnosticsResponse extends AbstractLightblueResponse implements LightblueDiagnosticsResponse { @Override public boolean hasDiagnostics(String diagnosticsElementName) { return (getJson().get(diagnosticsElementName) != null); } DefaultLightblueDiagnosticsResponse(String responseText, Map<String, List<String>> headers);  DefaultLightblueDiagnosticsResponse(String responseText, Map<String, List<String>> headers,
            ObjectMapper mapper); @Override DiagnosticsElement getDiagnostics(String diagnosticsElementName); @Override boolean hasDiagnostics(String diagnosticsElementName); @Override List<DiagnosticsElement> getDiagnostics(); @Override boolean allHealthy();  }### Answer:
@Test public void testHasDiagnostics() throws Exception { URI uri = this.getClass().getClassLoader().getResource("diagnostics/lightblue-healthy-response.json").toURI(); String diagnosticsSuccessResponse = new String(Files.readAllBytes(Paths.get(uri)), Charset.forName("utf-8")); DefaultLightblueDiagnosticsResponse testResponse = new DefaultLightblueDiagnosticsResponse(diagnosticsSuccessResponse, null); Assert.assertEquals(true, testResponse.hasDiagnostics("MongoCRUDController")); }