@Test
public void testSystemHints() {

    Hints hints = GeoTools.getDefaultHints();
    assertNotNull(hints);
    assertTrue(hints.isEmpty());
    System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "true");
    Hints.scanSystemProperties();
    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);
        assertTrue(((Boolean) value).booleanValue());
    } finally {
        System.clearProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
        assertNotNull(Hints.removeSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER));
    }
    hints = GeoTools.getDefaultHints();
    assertNotNull(hints);
    assertTrue(hints.isEmpty());
}