PostProcessor implements Comparable<PostProcessor<T>> { public abstract void process(T bean, FixtureMap fixtureMap); PostProcessor();  PostProcessor(int priority); abstract void process(T bean, FixtureMap fixtureMap); int getPriority(); Class<T> getTargetClass(); @Override int compareTo(PostProcessor o); final static int DEFAULT_PRIORITY; }
@Test public void testProcess() { Author author = new Author(); author.setId(1); PostProcessor<Author> postProcessor = new PostProcessor<Author>() { @Override public void process(Author bean, FixtureMap fixtureMap) { bean.setId(9); } }; postProcessor.process(author, null); assertEquals(9, author.getId()); }