@Test
public void testGetObject_sbar() {

    MockICS ics = new MockICS();
    Factory root = new CBarFactory(ics);
    BaseFactory bf = new BaseFactory(ics, root) {
        @Override
        protected Class<?>[] factoryClasses(ICS ics) {
            return new Class[] { SBarFactory.class };
        }
    };
    SBar foo = bf.getObject("foobar2", SBar.class);
    Assert.assertNotNull(foo);
    List<?> list = bf.getObject("list", List.class);
    Assert.assertNotNull(list);
}