@Test
public void testSetMin() {

    test.set(1);
    assertEquals(1, test.get().intValue());
    test.setMin(0);
    assertEquals(0, test.getMin().intValue());
    assertEquals(1, test.get().intValue());
    test.setMin(2);
    assertEquals(2, test.getMin().intValue());
    assertEquals(2, test.get().intValue());
    test.setMin(null);
    assertNull(test.getMin());
    assertEquals(2, test.get().intValue());
}