### Question:
OperationSequence implements LoadBalancingOperation { @Override public void perform() { sequence.forEach(LoadBalancingOperation::perform); } OperationSequence(List<LoadBalancingOperation> sequence); @Override void perform();  }### Answer:
@Test public void perform() { List<String> operations = new LinkedList<>(); OperationSequence testSubject = new OperationSequence(asList(() -> operations.add("A"), () -> operations.add("B"), () -> operations.add("C"))); testSubject.perform(); assertEquals(asList("A","B","C"), operations); }