ProvisionException pex = new ProvisionException(ImmutableSet.of(message));
assertEquals(getFirstThrowableOfType(pex, AuthorizationException.class), null);
}
public void testGetFirstThrowableOfTypeWhenCauseIsNull() {
Message message = new Message(ImmutableList.of(), "test", null);
ProvisionException pex = new ProvisionException(ImmutableSet.of(message));
assertEquals(getFirstThrowableOfType(pex, AuthorizationException.class), null);
}