@Test
@SuppressWarnings({ "ObjectEqualsNull", "EqualsBetweenInconvertibleTypes" })

public void equalsShouldBeFalseWhenWrongObjects() {
    final User test1 = new User("Test1", 123);
    assertFalse(test1.equals(null));
    assertFalse(test1.equals("No user"));
}