@Test(expected = InvalidNovaCredentialsException.class)
public void validateNovaCredentialsTestException() throws InvalidNovaCredentialsException {

  when(securityGroupApi.list()).thenThrow(AuthorizationException.class);
  NovaContext context = NovaLauncher.validateCredentials(novaCredentials, builder);
}