LiteralExtractor implements Extractor<T>, Serializable, PortableObject { public LiteralExtractor() { } LiteralExtractor();  LiteralExtractor(T literal); @Override T extract(Object o); @SuppressWarnings("unchecked") @Override void readExternal(PofReader reader); @Override void writeExternal(PofWriter writer); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testLiteralExtractor() { assertEquals("blah", new LiteralExtractor("blah").extract(null)); assertEquals(5, new LiteralExtractor(5).extract(null)); }