@Test
public void testLinePatterns() throws CookbookUrlException {

  Settings.CB_CLASSPATH_MODE = true;
  String content = "cookbook 'kagent', github: 'karamelchef/kagent-chef'\n"
      + "cookbook 'ark', github: 'burtlo/ark', tag: 'v0.8.2'\n"
      + "cookbook 'ark2', github: 'burtlo/ark2', branch: 'kitchen'\n"
      + "cookbook 'ark3', github: 'burtlo/ark3', version: 'v0.4.0'\n";
  Berksfile berksfile = new Berksfile(content);
  Assert.assertTrue(berksfile.getDeps().containsKey("kagent"));
  Assert.assertEquals("karamelchef/kagent-chef", berksfile.getDeps().get("kagent").getGithub());
  Assert.assertEquals("master", berksfile.getDeps().get("kagent").getBranch());
  Assert.assertTrue(berksfile.getDeps().containsKey("ark"));
  Assert.assertEquals("burtlo/ark", berksfile.getDeps().get("ark").getGithub());
  Assert.assertEquals("v0.8.2", berksfile.getDeps().get("ark").getBranch());
  Assert.assertTrue(berksfile.getDeps().containsKey("ark2"));
  Assert.assertEquals("burtlo/ark2", berksfile.getDeps().get("ark2").getGithub());
  Assert.assertEquals("kitchen", berksfile.getDeps().get("ark2").getBranch());
  Assert.assertTrue(berksfile.getDeps().containsKey("ark3"));
  Assert.assertEquals("burtlo/ark3", berksfile.getDeps().get("ark3").getGithub());
  Assert.assertEquals("v0.4.0", berksfile.getDeps().get("ark3").getBranch());
}