@Test
public void overrideBlackList() {

    List<String> origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-*");
    Assert.assertTrue(origin.size() == 0);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "!*");
    Assert.assertTrue(origin.size() == 0);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-default");
    Assert.assertTrue(origin.size() == 0);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "!default");
    Assert.assertTrue(origin.size() == 0);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-*,-com.xxx");
    Assert.assertTrue(origin.size() == 0);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "aaa,-*,-com.xxx");
    Assert.assertTrue(origin.size() == 1);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-*,aaa");
    Assert.assertTrue(origin.size() == 1);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-com.xxx");
    Assert.assertTrue(origin.size() == 2);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "-com.xxx,-com.yyy");
    Assert.assertTrue(origin.size() == 1);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "com.xxx,-com.yyy");
    Assert.assertTrue(origin.size() == 2);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "com.aaa,-com.yyy");
    Assert.assertTrue(origin.size() == 3);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "com.aaa");
    Assert.assertTrue(origin.size() == 4);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "com.xxx;com.yyy;com.zzz");
    Assert.assertTrue(origin.size() == 3);
    origin = buildOriginList();
    BlackListFileLoader.overrideBlackList(origin, "com.aaa,com.bbb,com.ccc");
    Assert.assertTrue(origin.size() == 6);
}