diff --git a/aws/core/src/test/java/org/jclouds/aws/ec2/options/RunInstancesOptionsTest.java b/aws/core/src/test/java/org/jclouds/aws/ec2/options/RunInstancesOptionsTest.java index 803b5c9dc0..0da9638e42 100644 --- a/aws/core/src/test/java/org/jclouds/aws/ec2/options/RunInstancesOptionsTest.java +++ b/aws/core/src/test/java/org/jclouds/aws/ec2/options/RunInstancesOptionsTest.java @@ -129,8 +129,8 @@ public class RunInstancesOptionsTest { @Test public void testWithUserData() { RunInstancesOptions options = new RunInstancesOptions(); - options.withUserData("test"); - assertEquals(options.buildFormParameters().get("UserData"), Collections.singletonList("test")); + options.withUserData("test".getBytes()); + assertEquals(options.buildFormParameters().get("UserData"), Collections.singletonList("dGVzdA==")); } @Test @@ -141,8 +141,8 @@ public class RunInstancesOptionsTest { @Test public void testWithUserDataStatic() { - RunInstancesOptions options = withUserData("test"); - assertEquals(options.buildFormParameters().get("UserData"), Collections.singletonList("test")); + RunInstancesOptions options = withUserData("test".getBytes()); + assertEquals(options.buildFormParameters().get("UserData"), Collections.singletonList("dGVzdA==")); } @Test(expectedExceptions = NullPointerException.class)