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

    final PackageId arg0 = PackageId.fromString("my_packages:example:1.0");
    final String arg1 = "/correct/path";
    final Session arg2 = mock(Session.class);
    final ProgressCheck delegate = mock(ProgressCheck.class);
    doThrow(RepositoryException.class).when(delegate).deletedPath(
            any(PackageId.class),
            any(String.class),
            any(Session.class));
    final ProgressCheckAliasFacade alias = new ProgressCheckAliasFacade(delegate, null);
    alias.deletedPath(arg0, arg1, arg2);
}