ValidationUtils { public static void assertEquals( final Object obj1, final Object obj2, final RuntimeException error) { assertTrue(equal(obj1, obj2), error); }  static void assertTrue(final boolean value, final RuntimeException th); static void assertTrue(final boolean value, final String message); static void assertTrue(final boolean value); static void assertFalse(final boolean value, final RuntimeException th); static void assertFalse(final boolean value, final String message); static void assertFalse(final boolean value); static void assertNull(final Object obj, final RuntimeException error); static void assertNull(final Object obj, final String message); static void assertNull(final Object obj); static void assertNotNull(final Object obj, final RuntimeException error); static void assertNotNull(final Object obj, final String message); static void assertNotNull(final Object obj); static void assertEquals(
      final Object obj1,
      final Object obj2,
      final RuntimeException error); static void assertEquals(
      final Object obj1,
      final Object obj2,
      final String message); static void assertEquals(
      final Object obj1,
      final Object obj2); static void assertNotEquals(
      final Object obj1,
      final Object obj2,
      final RuntimeException error); static void assertNotEquals(
      final Object obj1,
      final Object obj2,
      final String message); static void assertNotEquals(
      final Object obj1,
      final Object obj2);  }
@Test public void testAssertEquals() { assertEquals(null, null); assertEquals("Hello", "Hello"); try { assertEquals("Hello", "Hello1"); fail(); } catch (final AssertionError e) { } try { assertEquals(null, "Hello1"); fail(); } catch (final AssertionError e) { } try { assertEquals("Hello", null); fail(); } catch (final AssertionError e) { } }
@Test public void testAssertEqualsWithSpecificException() { try { assertEquals("Hello", null, new UnsupportedOperationException()); fail(); } catch (final UnsupportedOperationException e) { } try { assertEquals(null, "Hello", new UnsupportedOperationException()); fail(); } catch (final UnsupportedOperationException e) { } }