@Test
public void testWildcardTypesNotSupported() {

    final B2TypeResolver resolverWithWildcards = new B2TypeResolver(
            EnclosingWithWildcards.class,
            new Type[]{String.class});
    thrown.expect(RuntimeException.class);
    thrown.expectMessage("Wildcard types are not supported");
    resolverWithWildcards.resolveType(EnclosingWithWildcards.class.getDeclaredFields()[0]);
}