}
@Test(expected = MojoFailureException.class)
public void exceptionThrownInCaseOfLauncherFailure() throws IOException, AbstractMojoExecutionException {
// given
P2ApplicationLauncher launcher = Mockito.mock(P2ApplicationLauncher.class, Mockito.RETURNS_DEEP_STUBS);
when(launcher.execute(Mockito.anyInt())).thenReturn(137);
File file = File.createTempFile(UUID.randomUUID().toString(), UUID.randomUUID().toString());
file.deleteOnExit();
// when
CategoryPublisher publisher = CategoryPublisher.builder()