    @Test
    public void should_install_file_with_executable_permission() throws IOException {


        // Given

        when(locationResolverChain.getLocationResolver(any(BuildahConfiguration.class))).thenReturn(locationResolver);
        when(locationResolver.getBuildahName()).thenReturn("hellobuildah.txt");
        when(locationResolver.loadBuildahResource()).thenReturn(new ByteArrayInputStream("binaries/hello.txt".getBytes()));

        InstallManager installManager = new InstallManager();
        installManager.locationResolverChain = locationResolverChain;

        // When
        final Path installPath = installManager.install(new BuildahConfiguration());

        assertThat(installPath)
                .exists()
                .isExecutable();
    }