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

    final PackageId arg0 = PackageId.fromString("my_packages:example:1.0");
    final String arg1 = "/correct/path";
    final Node arg2 = mock(Node.class);
    final PathAction arg3 = PathAction.MODIFIED;
    final ProgressCheck delegate = mock(ProgressCheck.class);
    doThrow(RepositoryException.class).when(delegate).importedPath(
            any(PackageId.class),
            any(String.class),
            any(Node.class),
            any(PathAction.class));
    final SilencingCheckFacade alias = new SilencingCheckFacade(delegate);
    alias.importedPath(arg0, arg1, arg2, arg3);
}