@Test
public void testEquals() {

    PercentType pt1 = new PercentType(Integer.valueOf(100));
    PercentType pt2 = new PercentType("100.0");
    PercentType pt3 = new PercentType(0);
    PercentType pt4 = new PercentType(0);
    // Do not change to assertEquals(), because we want to check if .equals() works as expected!
    assertTrue(pt1.equals(pt2));
    assertTrue(pt3.equals(pt4));
    assertFalse(pt3.equals(pt1));
}