@Test
public void testMaxPercentFailure() throws Exception {
ClusterControllerFactory factory = mock(ClusterControllerFactory.class);
ClusterController controller = mock(ClusterController.class);
Cluster cluster = mock(Cluster.class);
when(factory.create((String) any())).thenReturn(controller);
when(controller.launchCluster((ClusterSpec) any())).thenReturn(cluster);
LaunchClusterCommand command = new LaunchClusterCommand(factory);
Map<String, File> keys = KeyPair.generateTemporaryFiles();
int rc = command.run(null, out, null, Lists.newArrayList(