FileHibernate extends Hibernate { public static String getFilename(Processor p, String path) { return path + p.getId(); } FileHibernate(Processor p, String path, ObjectPrinter<String> printer, ObjectReader<String> reader); static String getFilename(Processor p, String path);  }
@Test public void testFilename1() { Passthrough pt = new Passthrough(); assertEquals("/tmp/" + pt.getId(), FileHibernate.getFilename(pt, "/tmp/")); }