protected SyndesisModel loadTestYaml() throws IOException { String path = getClass().getName().replace('.', '/') + "-" + getTestMethodName() + ".yml"; LOG.info("Loading SyndesisModel flows from classpath at: " + path); URL resource = getClass().getClassLoader().getResource(path); Assertions.assertThat(resource).describedAs("Could not find " + path + " on the classpath!").isNotNull(); try (InputStream is = resource.openStream()) { return YamlHelpers.load(is); } }