### Question:
DefaultLightblueDataResponse extends AbstractLightblueResponse implements LightblueDataResponse { @Override public int parseMatchCount() { return parseInt("matchCount"); } DefaultLightblueDataResponse(JsonNode responseNode, Map<String, List<String>> headers);  DefaultLightblueDataResponse(JsonNode responseNode, ObjectMapper mapper);  DefaultLightblueDataResponse(JsonNode responseNode, Map<String, List<String>> headers, ObjectMapper mapper);  DefaultLightblueDataResponse(String responseText);  DefaultLightblueDataResponse(String responseText, Map<String, List<String>> headers);  DefaultLightblueDataResponse(String responseText, Map<String, List<String>> headers, ObjectMapper mapper); @Override int parseModifiedCount(); @Override int parseMatchCount(); @Override ResultMetadata[] getResultMetadata(); @Override JsonNode getProcessed(); @Override @SuppressWarnings("unchecked") T parseProcessed(final Class<T> type);  }### Answer:
@Test public void testParseMatchCount() throws Exception { DefaultLightblueDataResponse response = new DefaultLightblueDataResponse("{\"matchCount\": 5, \"modifiedCount\": 0, \"status\": \"COMPLETE\"}"); Assert.assertEquals(5, response.parseMatchCount()); }
@Test public void testParseMatchCount_zeroValue() throws Exception { DefaultLightblueDataResponse response = new DefaultLightblueDataResponse("{\"matchCount\": 0, \"modifiedCount\": 0, \"status\": \"COMPLETE\"}"); Assert.assertEquals(0, response.parseMatchCount()); }
@Test public void testParseMatchCount_notExist() throws Exception { DefaultLightblueDataResponse response = new DefaultLightblueDataResponse("{\"modifiedCount\": 0, \"status\": \"COMPLETE\"}"); Assert.assertEquals(0, response.parseMatchCount()); }
@Test public void testParseMatchCount_nullValue() throws Exception { DefaultLightblueDataResponse response = new DefaultLightblueDataResponse("{\"matchCount\": null, \"modifiedCount\": 0, \"status\": \"COMPLETE\"}"); Assert.assertEquals(0, response.parseMatchCount()); }