List<Profile> profiles = ProfileUtil.fromYaml(is);
assertEquals(2,profiles.size());
}
@Test
public void fromClasspath() throws IOException {
<BUG>Profile[] profiles = ProfileUtil.readAllFromClasspath("one", "");

assertEquals(1, profiles.length);

assertNotNull(profiles[0]);
</BUG>
}

List<Profile> profiles = ProfileUtil.fromYaml(is);
assertNotNull(profiles);
assertEquals(profiles.size(),2);
Profile profile = profiles.get(0);
assertEquals("simple", profile.getName());
ProcessorConfig config = profile.getEnricherConfig();
assertTrue(config.use("base"));
assertFalse(config.use("blub"));
config = profile.getGeneratorConfig();
assertFalse(config.use("java.app"));
assertTrue(config.use("spring.swarm"));
}
