@Test(expected = PackageException.class)
public void testException() throws Exception {

    processor.infos = Arrays.asList(info);
    Mockito.when(ctx.getPhase()).thenReturn(Phase.INSTALLED);
    Mockito.doThrow(new IllegalArgumentException("testException")).when(info).getActions();
    processor.execute(ctx);
}