@Test public void
successfullyProcessesTemplateForViews() throws Exception {
final File views = testFolder.newFile("views.txt");
FileUtils.copyInputStreamToFile(RecordedObservationTargets.class.getResourceAsStream("templates/views.txt.template"), views);
final RecordedObservationTargets targets = new RecordedObservationTargets(new SettingsFile(views));
assertThat(targets.landscapes().landscapeNamed("CI-eye Demo"), is(not(nullValue())));
assertThat(targets.landscapes().landscapeNamed("Public Live"), is(not(nullValue())));
final Collection<Feature> features = targets.landscapes().landscapeNamed("Public Live").features();
assertThat(features, contains(new Feature("Jenkins core", "http://ci.jenkins-ci.org", new CiServerType("JENKINS")),
new Feature("Main (trunk, branches, and alternative builds)", "http://hudson.magnolia-cms.com", new CiServerType("HUDSON")),
new Feature("Apache Ivy", "http://teamcity.jetbrains.com", new CiServerType("TEAMCITY")),
new Feature("CI-Eye", "http://teamcity.codebetter.com", new CiServerType("TEAMCITY"))));
}