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