@Test
public void testRead() throws Exception {

    Configuration config = Configuration.read(new StringReader("{}"));
    assertNotNull(config.hosts);
    assertNotNull(config.hosts.items);
    assertNotNull(config.whitelist);
    assertNotNull(config.whitelist.items);
    assertNotNull(config.whitelist.itemsOnVpn);
    assertNotNull(config.dnsServers);
    assertNotNull(config.dnsServers.items);
    assertTrue(config.whitelist.items.contains("com.android.vending"));
    assertTrue(config.ipV6Support);
    assertFalse(config.watchDog);
    assertFalse(config.nightMode);
    assertTrue(config.showNotification);
    assertFalse(config.autoStart);
}