}
@Test(expected = DeploymentException.class)
public void shouldRethrowExceptionIfWrongExpectedType() throws Exception
{
TestExceptionDeployThrower.shouldThrow = new DeploymentException("Could not handle ba", new NullPointerException());
Mockito.when(serviceLoader.all(DeploymentExceptionTransformer.class)).thenReturn(Arrays.asList(transformer));
fire(new DeployDeployment(
container,
new DeploymentDescription("test", ShrinkWrap.create(JavaArchive.class))