public static String serializeAwsCredentialsProvider(AwsCredentialsProvider credentialsProvider) {
    return serialize(credentialsProvider);
  }
@Test(expected = IllegalArgumentException.class)
  public void testFailOnAwsCredentialsProviderSerialization() {
    AwsCredentialsProvider awsCredentialsProvider = new UnknownAwsCredentialsProvider();
    AwsSerializableUtils.serializeAwsCredentialsProvider(awsCredentialsProvider);
  }