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

    final PackageId arg0 = PackageId.fromString("my_packages:example:1.0");
    final Session arg1 = mock(Session.class);
    final ProgressCheck delegate = mock(ProgressCheck.class);
    doThrow(RepositoryException.class).when(delegate).afterExtract(
            any(PackageId.class),
            any(Session.class));
    final SilencingCheckFacade alias = new SilencingCheckFacade(delegate);
    alias.afterExtract(arg0, arg1);
}