@Test
public void testGetObject_foo() {

    MockICS ics = new MockICS();
    BaseFactory bf = new FooFactory(ics);
    Foo foo = bf.getObject("foo", Foo.class);
    Assert.assertNotNull(foo);
    Assert.assertTrue(foo instanceof Bar);
}