@Test
public void scanForMethods() throws Exception {

    class Woot {
        @Yay String foo() {
            return "foo";
        }
        String bar() {
            return "bar";
        }
    }
    List<InjectableMethod<?>> methods = InjectableMethod.forAnnotatedMethods(TypeLiteral.get(Woot.class), new Woot(), Yay.class);
    Injector injector = Guice.createInjector(Lists.transform(methods, InjectableMethod::bindingModule));
    assertEquals("foo", injector.getInstance(String.class));
}