### Question:
HasJsonArray extends TypeSafeMatcher<JsonNode> { @Override public void describeTo(Description description) { description.appendText("JsonNode with '" + fieldName + "' matching: "); arrayMatcher.describeTo(description); } HasJsonArray(String fieldName, Matcher<?> arrayMatcher); @Override void describeTo(Description description); @Override boolean matchesSafely(JsonNode jsonNode);  }### Answer:
@Test public void matcherShouldDescribeItselfCorrectly() { Description description = new StringDescription(); matcher.describeTo(description); assertThat(description.toString(), is("JsonNode with 'array' matching: A JSON array with size: is <2>")); }