@Test
public void testGetInterfaces() {

	Class<?>[] interfaces = ReflectionUtil.getInterfaces(new TestClass());
	Assert.assertEquals(Arrays.toString(interfaces), 1, interfaces.length);
	Assert.assertSame(TestInterface.class, interfaces[0]);
	AtomicReference<ClassNotFoundException> atomicReference =
		new AtomicReference<>();
	interfaces = ReflectionUtil.getInterfaces(
		new TestClass(), new URLClassLoader(new URL[0], null));
	Assert.assertEquals(Arrays.toString(interfaces), 0, interfaces.length);
	interfaces = ReflectionUtil.getInterfaces(
		new TestClass(), new URLClassLoader(new URL[0], null),
		atomicReference::set);
	Assert.assertEquals(Arrays.toString(interfaces), 0, interfaces.length);
	Assert.assertNotNull(atomicReference.get());
}