SetStoragePolicyTaskRunner implements TaskRunner { public String getName() { return TASK_NAME; } SetStoragePolicyTaskRunner(S3StorageProvider unwrappedS3Provider); String getName(); @Override String performTask(String taskParameters);  }
@Test public void testGetName() { SetStoragePolicyTaskRunner taskRunner = new SetStoragePolicyTaskRunner(unwrappedS3Provider); replayAll(); assertEquals("set-storage-policy", taskRunner.getName()); }