@Test
public void testTrySet() throws Exception {

    TrackMe trackMe = new TrackMe();
    trackMe.trySet(QueryParams.HOURS, "A");
    trackMe.trySet(QueryParams.HOURS, "B");
    assertEquals("A", trackMe.get(QueryParams.HOURS));
    trackMe = new TrackMe();
    trackMe.trySet(QueryParams.HOURS, 1f);
    trackMe.trySet(QueryParams.HOURS, 2f);
    assertEquals(String.valueOf(1f), trackMe.get(QueryParams.HOURS));
    trackMe = new TrackMe();
    trackMe.trySet(QueryParams.HOURS, 1L);
    trackMe.trySet(QueryParams.HOURS, 2L);
    assertEquals(String.valueOf(1L), trackMe.get(QueryParams.HOURS));
    trackMe = new TrackMe();
    trackMe.trySet(QueryParams.HOURS, 1);
    trackMe.trySet(QueryParams.HOURS, 2);
    assertEquals(String.valueOf(1), trackMe.get(QueryParams.HOURS));
    trackMe = new TrackMe();
    trackMe.trySet(QueryParams.HOURS, "A");
    trackMe.trySet(QueryParams.HOURS, null);
    assertNotNull(trackMe.get(QueryParams.HOURS));
}