@Test
public void throws_when_config_file_is_invalid() throws IOException {

    File config = temporaryFolder.newFile(".docker-compose-rule.yml");
    Files.write(config.toPath(), ImmutableList.of(
            "reporting:",
            "  whoops: oh no"
    ), StandardCharsets.UTF_8);
    assertThatExceptionOfType(RuntimeException.class)
            .isThrownBy(() -> DockerComposeRuleConfig.findAutomaticallyFrom(temporaryFolder.getRoot()))
            .withMessageContaining("deserialize config file");
}