@Test
  public void testLoadBranch1() throws Exception {

    rootDirectories.add(createPath("default://origin@uf-playground"));
    rootDirectories.add(createPath("default://master@uf-playground"));
    rootDirectories.add(createPath("default://branch1@uf-playground"));

    ConfigGroup configGroup = getConfigGroup();
    configGroup.setName("test");

    Repository repository = helper.newRepository(configGroup, "branch1");

    assertEquals(3, repository.getBranches().size());
    assertEquals("branch1", repository.getCurrentBranch());
  }
 @Test(expected = IllegalStateException.class)
 public void testNotValid() throws Exception {
   helper.newRepository(getConfigGroup());
 }
 @Test(expected = IllegalArgumentException.class)
 public void testNoSchemeConfigItem() throws Exception {
   helper.newRepository(new ConfigGroup());
 }