SimpleContext extends AbstractContext { @Override public <T> T find(Class<T> type) { return contextContent.find(type); } SimpleContext(SimpleContextContent contextContent); @Override T find(Class<T> type); @Override Collection<T> findAll(Class<T> type);  }
@Test public void testFind() { System.out.println("find"); MyCustomFoo foo = new MyCustomFoo(); content.add(foo); assertEqualsMyCustomFoo(context, foo); content.remove(foo); assertEqualsMyCustomFoo(context, null); }