### Question:
ArrayTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isArray(); }  boolean matches(T target); @Override String toString();  }### Answer:
@Test public void testIsArray() { when(typeDefinition.isArray()).thenReturn(true); assertThat(new ArrayTypeMatcher<TypeDefinition>().matches(typeDefinition), is(true)); }
@Test public void testIsNoArray() { assertThat(new ArrayTypeMatcher<TypeDefinition>().matches(typeDefinition), is(false)); }