@Override
  public <R> R create(final Class<R> resourceClass)
  {
    return _containerAdaptor.getBean(resourceClass);
  }
@Test
  public void testMockInjection()
  {
    InjectMockResourceFactory factory =
            new InjectMockResourceFactory(new SimpleBeanProvider()
                                                  .add("counterBean", new CounterBean())
                                                  .add("mySpecialBean", new SpecialBean()),
                                          Resource.class);
    Resource instance = factory.create(Resource.class);
    instance.validateBeans();
  }