public void someAction() {
}
}
final Method actionMethod = findMethod(Customer.class, "someAction");
facetFactory.process(new ProcessMethodContext(Customer.class, null, null, actionMethod, methodRemover, facetedMethod));
final Facet facet = facetedMethod.getFacet(DisabledFacet.class);
final DisabledFacetAbstract disabledFacetAbstract = (DisabledFacetAbstract) facet;
assertEquals(When.UNTIL_PERSISTED, disabledFacetAbstract.when());