@Test
public void testResolveFieldFromDifferentClass_throws() {

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("cannot resolve fields from other classes");
    resolverWithTypeArguments.resolveType(EnclosingWithWildcards.class.getDeclaredFields()[0]);
}