### Question:
ArtifactResults { public int getFailureCount(String testName) { Integer failures = results.get(testName); if (failures == null) { return 0; } return failures; } ArtifactResults(Artifact artifact); void setExceptionMessage(String exceptionMessage); @Nullable Boolean getResult(String testName); String getCoordinates(); @Nullable String getExceptionMessage(); int getFailureCount(String testName);  }### Answer:
@Test public void testGetFailureCount() { results.addResult("foo", 0); results.addResult("bar", 10); Assert.assertEquals(0, results.getFailureCount("foo")); Assert.assertEquals(10, results.getFailureCount("bar")); Assert.assertEquals(0, results.getFailureCount("baz")); }