### Question:
WrappedDeclaredType extends WrappedTypeMirror { @Override public boolean isOfType(Class<?> type) { return sameErasedTypeAs(typeOf(type.getName())); } WrappedDeclaredType(DeclaredType type, Types types, Elements elements); @Override String className(); String binaryName(); @Override boolean isBoolean(); @Override boolean isDeclaredType(); List<? extends TypeMirror> getTypeArguments(); @Override boolean isOfType(Class<?> type); @Override boolean isAssignableTo(String typeName);  }### Answer:
@Test public void shouldIsOfTypeReturnTrue() { assertThat(type.isOfType(GenericClass.class), equalTo(true)); }