### Question:
ComponentDerivationRecord { public void addOperation( Operation operation ) { if ( operation != null ) { getOperations().addOperation( operation.getType(), operation ); } } ComponentDerivationRecord();  ComponentDerivationRecord( StepField originalField, StepField changedField );  ComponentDerivationRecord( StepField originalField, StepField changedField, ChangeType changeType );  ComponentDerivationRecord( String originalEntityName, String changedEntityName );  ComponentDerivationRecord( String originalEntityName, String changedEntityName, ChangeType changeType );  ComponentDerivationRecord( String changedEntityName, ChangeType changeType );  ComponentDerivationRecord( String changedEntityName ); ChangeType getChangeType(); void setChangeType( ChangeType changeType ); String getChangedEntityName(); void setChangedEntityName( String changedEntityName ); String getOriginalEntityName(); void setOriginalEntityName( String originalEntityName ); String getOriginalEntityStepName(); void setOriginalEntityStepName( String stepName ); String getChangedEntityStepName(); void setChangedEntityStepName( String stepName ); StepField getOriginalField(); void setOriginalField( StepField originalField ); StepField getChangedField(); void setChangedField( StepField changedField ); List<IOperation> getOperations( ChangeType type ); Operations getOperations(); void addOperation( Operation operation ); boolean hasDelta(); @Override boolean equals( Object o ); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testAddOperation() throws Exception { Operations operations = record.getOperations(); assertNotNull( operations ); assertTrue( operations.isEmpty() ); String operands = "testOperand1, testOperand2"; record.addOperation( new Operation( "testOperation", operands ) ); operations = record.getOperations(); assertNotNull( operations ); List<IOperation> checkOperations = operations.get( ChangeType.METADATA ); assertNotNull( checkOperations ); assertEquals( 1, checkOperations.size() ); IOperation checkOperation = checkOperations.get( 0 ); assertTrue( "testOperand1 not in operands!", checkOperation.getDescription().contains( "testOperand1" ) ); assertTrue( "testOperand2 not in operands!", checkOperation.getDescription().contains( "testOperand2" ) ); }