### Question:
GraphTaskOperations implements TaskOperationsDefinition { @Override public List<String> getOperations(String state) { List<String> operationsList = new ArrayList<String>(); for (OperationsDefinition def : this.definition) { if (state.equals(def.getName())) { if ((def.getTransitions() != null)) { for (DestinationDefinition operations : def .getTransitions()) { operationsList.add(operations.getAction()); } } } } return operationsList; } GraphTaskOperations(InputStream graphConfigurationFile); @Override List<String> getOperationsList(); @Override List<String> getOperations(String state);  }### Answer:
@Test public void getOperations() { List<String> tasks = operations.getOperations("READY"); Assert.assertEquals(2, tasks.size()); Assert.assertTrue(tasks.contains("claim")); Assert.assertTrue(tasks.contains("suspend")); }