public void testSingularNameMethodPickedUpOnClassAndMethodRemoved() {
final Method singularNameMethod = findMethod(Customer.class, "singularName");
facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));
final Facet facet = facetedMethod.getFacet(NamedFacet.class);
assertNotNull(facet);
assertTrue(facet instanceof NamedFacetViaSingularNameStaticMethod);
final NamedFacetViaSingularNameStaticMethod namedFacetViaSingularNameStaticMethod = (NamedFacetViaSingularNameStaticMethod) facet;
assertEquals("Some name", namedFacetViaSingularNameStaticMethod.value());