@Test
void traverseMethods() {

    final Set<String> methodNames = Stream.of("foo", "bar").collect(toSet());
    final List<Method> methods = ReflectionUtil.traverseMethods(Bar.class)
            .filter(m -> methodNames.contains(m.getName()))
            .collect(toList());
    assertEquals(2, methods.size(), methods.toString());
}