DynamoDBRaiderImpl implements DynamoDBRaider { @Override public String blockDynamoDB(String ip) { return executeScriptOnClasspath(ip, Actions.BLOCKDYNAMO.getActionName()); } DynamoDBRaiderImpl(); @Override String blockDynamoDB(String ip); @Override String unblockDynamoDB(String ip); @Override long getDynamoDBReadIOPS(String tableName); @Override void setDyanmoDBReadIOPS(String tableName,long readIops); @Override long getDynamoDBWriteIOPS(String tableName); @Override void setDyanmoDBWriteIOPS(String tableName, long writeIops); @Override void setDyanmoDBReadAndWriteIOPS(String tableName, long readIops, long writeIops);  }
@Test public void testDynamoDBDown() { final String ip = UUID.randomUUID().toString(); final String result = UUID.randomUUID().toString(); Mockito.when(systemRaider.executeScript(ip, ClassLoader.getSystemResource("blockdynamo.sh").getPath())).thenReturn(result); Assert.assertEquals("Unexpected result: ", result, dynamoDBRaider.blockDynamoDB(ip)); }