@Test
public void testFork() {

   GitForkCmd task = new GitForkCmd("fork1");
   Map<String, Object> attrs = new HashMap<>();
   String organization = "UpgradeTest";
   Config gitconfig = Config.getInstance();
   gitconfig.setGitAPIUrl("https://github.com/api/v3/repos/");
   gitconfig.setOrganization("UpgradeTest");
   attrs.put("fork1.gitUrl", "https://github.com/ostara/webres-sample");
   attrs.put("fork1.username", "platformupgradeservice");
   attrs.put("fork1.password", "dummy");
   attrs.put("fork1.organization", organization);
   CmdManager manager = CmdManagerFactory.create(attrs);
   manager.addCmd(task);
   manager.execute();
   Assert.assertTrue(manager.isDone());
   Assert.assertEquals(task, manager.getAllCmds().get(0));
   System.out.println("result:" + manager.getResults());
   Assert.assertTrue(manager.isSuccess());
}