### Question:
StepField { public Map<String, String> toMap() { return Collections.singletonMap( stepName, fieldName ); } StepField();  StepField( String stepName, String fieldName );  StepField( StepField stepField ); String getFieldName(); void setFieldName( String fieldName ); String getStepName(); void setStepName( String stepName ); Map<String, String> toMap(); String toString(); @Override int hashCode(); @Override boolean equals( Object sf );  }### Answer:
@Test public void testToMap() { stepField = new StepField( "testStep", "testField" ); Map<String, String> map = stepField.toMap(); assertEquals( 1, map.size() ); assertTrue( map.containsKey( "testStep" ) ); assertEquals( "testField", map.get( "testStep" ) ); }