@Test
 public void testWriteNoRemote() {
   PreferenceFileHandler.commitRemoteICs(new RemoteIC[0]);
   PreferenceFileHandler handler = new PreferenceFileHandler();
   assertEquals(0, handler.getTotalRemoteInfocenters());
   assertEquals(0, handler.getHostEntries().length);
   assertEquals(0, handler.getPortEntries().length);
   assertEquals(0, handler.getEnabledEntries().length);
   assertEquals(0, handler.getPathEntries().length);
 }
 @Test
 public void testWriteOneRemote() {
   RemoteIC[] ic = {new RemoteIC(true, "name", "host", "/help", "http", "8080")};
   PreferenceFileHandler.commitRemoteICs(ic);
   PreferenceFileHandler handler = new PreferenceFileHandler();
   assertEquals(1, handler.getTotalRemoteInfocenters());
   assertEquals(1, handler.getHostEntries().length);
   assertEquals("host", handler.getHostEntries()[0]);
   assertEquals(1, handler.getPortEntries().length);
   assertEquals("8080", handler.getPortEntries()[0]);
   assertEquals(1, handler.getEnabledEntries().length);
   assertEquals("true", handler.getEnabledEntries()[0].toLowerCase());
   assertEquals(1, handler.getPathEntries().length);
   assertEquals("/help", handler.getPathEntries()[0].toLowerCase());
 }