public static void assertValidException(AmazonServiceException e) {
        assertNotNull(e.getRequestId());
        assertTrue(e.getRequestId().trim().length() > 0);

        assertNotNull(e.getMessage());
        assertTrue(e.getMessage().trim().length() > 0);

        assertNotNull(e.getErrorCode());
        assertTrue(e.getErrorCode().trim().length() > 0);

        assertNotNull(e.getServiceName());
        assertTrue(e.getServiceName().startsWith("Amazon") || e.getServiceName().startsWith("AWS"));
    }
Asserts that the specified AmazonServiceException is valid, meaning it has a non-empty,
non-null value for its message, requestId, etc.

@param e
           The exception to validate.
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/util/SdkAsserts.java