    @Test
    public void testInject() {

        final Factory f = new Factory() {

            @SuppressWarnings("unchecked")
            public <T> T getObject(final String name, final Class<T> type) {
                return (T) name;
            }

        };
        final Sample object = new Sample();
        AnnotationInjector.inject(object, f);
        assertEquals("me", object.foo);
        assertEquals("foot", object.foot);

    }