@Test
public void testIsIntranetBackwardCompatibility() {

    settingManager.setValue(Settings.SYSTEM_INTRANET_NETMASK, "255.255.255.0");
    settingManager.setValue(Settings.SYSTEM_INTRANET_NETWORK, "192.168.1.0");
    String ipPrefix = "192.168.1.";
    for (int i = 1; i < 255; i++) {
        String ipToTest = ipPrefix + i;
        assertTrue("IP " + ipToTest +" must be in the intranet", accessManager.isIntranet(ipToTest));
    }
    assertFalse("IP 192.168.2.1 is not in the intranet", accessManager.isIntranet("192.168.2.1"));
}