    @Test
    void tryStreamFileSubjectsShouldFailOnMissingFile() {

        Config config = ConfigFactory
                .parseResources("application-test.conf")
                .withValue("avro.subjects.yaml", ConfigValueFactory.fromAnyRef("/totally/fake/path/to.yaml"));

        service = new RegistryActionFunction(config);

        Try<FileInputStream> triedInputStream = service.tryStreamFileSubjects();

        assertFalse(triedInputStream.isSuccess());
        triedInputStream
                .onFailure((throwable) -> assertThat(throwable, instanceOf(FileNotFoundException.class)));
    }