@Test
public void testReflections() {

  Method reflect = Reflections.getCompatibleMethod(String.class, "indexOf", PARAMS);
  Method fastM = Reflections.getCompatibleMethodCached(String.class, "indexOf", PARAMS);
  Assert.assertEquals(reflect, fastM);
  Method method = Reflections.getMethod(String.class, "indexOf", int.class);
  Assert.assertEquals("indexOf", method.getName());
  method = Reflections.getMethod(String.class, "bla", char.class);
  Assert.assertNull(method);
  Constructor cons = Reflections.getConstructor(String.class, byte[].class);
  Assert.assertNotNull(cons);
  cons = Reflections.getConstructor(String.class, Pair.class);
  Assert.assertNull(cons);
}