### Question:
AmazonSnsPushMessageSubscriber implements PushMessageSubscriber { @Override public String registerDeviceEndpointArn(final String userDeviceToken, final String applicationArn) { assertValidDeviceTokenAndAplicationArn(userDeviceToken, applicationArn); return refreshDeviceEndpointArnInternal( executeRegisterDeviceEndpointRequest(userDeviceToken, applicationArn), userDeviceToken, applicationArn ); } AmazonSnsPushMessageSubscriber(final AmazonSnsApiCommunicator amazonSnsApiCommunicator); @Override String refreshDeviceEndpointArn(final String existingDeviceEndpointArn, final String userDeviceToken, final String applicationArn); @Override String registerDeviceEndpointArn(final String userDeviceToken, final String applicationArn);  }### Answer:
@Test public void testRgisterDeviceEndpointArnWithInvalidArguments() { Assertions.assertThatThrownBy(() -> messageSubscriber.registerDeviceEndpointArn(null, uuid())) .isInstanceOf(IllegalArgumentException.class); Assertions.assertThatThrownBy(() -> messageSubscriber.registerDeviceEndpointArn(uuid(), null)) .isInstanceOf(IllegalArgumentException.class); }