@Test(expected = RepositoryException.class)
public void testAppliedRepoInitScripts_throws() throws Exception {

    final PackageId arg0 = PackageId.fromString("my_packages:example:1.0");
    final List<String> arg1 = Collections.singletonList("one script");
    final SlingInstallable arg2 = mock(SlingInstallable.class);
    final Session arg3 = mock(Session.class);
    final ProgressCheck delegate = mock(ProgressCheck.class);
    doThrow(RepositoryException.class).when(delegate).appliedRepoInitScripts(
            any(PackageId.class),
            any(List.class),
            any(SlingInstallable.class),
            any(Session.class));
    final SilencingCheckFacade alias = new SilencingCheckFacade(delegate);
    alias.appliedRepoInitScripts(arg0, arg1, arg2, arg3);
}