### Question:
FieldFacetProvider implements FacetProvider { @Override public List<Facet> getFacets(Class<?> pojoType) { return facetsOf(pojoType); }  @Override List<Facet> getFacets(Class<?> pojoType);  }### Answer:
@Test public void testGetFacets() throws Exception { FacetProvider facetProvider = new FieldFacetProvider(); List<Facet> facets = facetProvider.getFacets(FieldPojoSub.class); Set<String> names = facets.stream().map(Facet::getName).collect(Collectors.toSet()); assertTrue(names.contains("foo")); assertTrue(names.contains("bar")); assertTrue(names.contains("baz")); assertFalse(names.contains("ignoredTransient")); assertFalse(names.contains("ignoredAnnotated")); }