### Question:
TypeAliasResolver { public boolean hasAliasFor(Type type) { return typeAliases.getAliasesMappedByType().containsKey(type); } TypeAliasResolver(); boolean hasAliasFor(Type type); boolean hasAliasFor(String name); TypeAlias getAliasFor(Type type); TypeAlias getAliasFor(String name);  }### Answer:
@Test void shouldResolveTypeAliasExistenceForGivenName() { String name = "String"; Boolean hasAlias = resolver.hasAliasFor(name); assertThat(hasAlias).isTrue(); }
@Test void shouldResolveTypeAliasExistenceForGivenType() { Class<?> type = String.class; Boolean hasAlias = resolver.hasAliasFor(type); assertThat(hasAlias).isTrue(); }