@Test
public void needLoad() throws Exception {

    Assert.assertTrue(ModuleFactory.needLoad("*", "xxx"));
    Assert.assertTrue(ModuleFactory.needLoad("*,xxx", "xxx"));
    Assert.assertTrue(ModuleFactory.needLoad("xxx", "xxx"));
    Assert.assertTrue(ModuleFactory.needLoad("xxx,yyy", "xxx"));
    Assert.assertTrue(ModuleFactory.needLoad("yyy,xxx", "xxx"));
    Assert.assertTrue(ModuleFactory.needLoad("yyy,xxx,zzz", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("yyy", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("xxxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("xxxx,yyy", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("yyy,xxxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("*,-xxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("a,b,-xxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("xxx,-xxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("*,!xxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("a,b,!xxx", "xxx"));
    Assert.assertFalse(ModuleFactory.needLoad("xxx,!xxx", "xxx"));
}