@Test
public void testMyHints(){

    Hints hints = GeoTools.getDefaultHints();
    assertTrue(hints.isEmpty());
    assertNull(Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.FALSE));
    try {
        hints = GeoTools.getDefaultHints();
        assertNotNull(hints);
        assertFalse(hints.isEmpty());
        assertEquals(1, hints.size());
        final Object value = hints.get(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
        assertTrue(value instanceof Boolean);
        assertFalse(((Boolean) value).booleanValue());
        /*
         * Tests the toString() method.
         */
        String text = hints.toString().trim();
        assertTrue(text.matches("Hints:\\s+FORCE_LONGITUDE_FIRST_AXIS_ORDER = false"));
        assertEquals(hints.put(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE), Boolean.FALSE);
        text = hints.toString().trim();
        assertTrue(text.matches("Hints:\\s+FORCE_LONGITUDE_FIRST_AXIS_ORDER = true"));
        assertEquals(hints.remove(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER), Boolean.TRUE);
        text = hints.toString().trim();
        assertTrue(text.matches("Hints:\\s+System defaults:\\s+FORCE_LONGITUDE_FIRST_AXIS_ORDER = false"));
    } finally {
        assertNotNull(Hints.removeSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER));
    }
    assertTrue(GeoTools.getDefaultHints().isEmpty());
}