"--public-key-file", publicKeyFile.getAbsolutePath()
));
assertThat(rc, is(0));
ClusterSpec expectedClusterSpec = new ClusterSpec();
expectedClusterSpec.setInstanceTemplates(Lists.newArrayList(
new ClusterSpec.InstanceTemplate(1, Sets.newHashSet("role1", "role2")),
new ClusterSpec.InstanceTemplate(2, Sets.newHashSet("role3"))
));
expectedClusterSpec.setServiceName("test-service");
expectedClusterSpec.setProvider("rackspace");
expectedClusterSpec.setIdentity("myusername");
expectedClusterSpec.setCredential("mypassword");
expectedClusterSpec.setClusterName("test-cluster");
expectedClusterSpec.setPrivateKey(privateKeyFile);
expectedClusterSpec.setPublicKey(publicKeyFile);
verify(factory).create("test-service");
verify(service).launchCluster(expectedClusterSpec);