### Question:
AbstractPerformanceDataBuilder { protected static String addTestCaseStepPerformanceData(String data, SortedSet<TestCaseStep> testCaseSteps, int countOfTestCase) { int j = 1; for (TestCaseStep step : testCaseSteps) { final String stepName = String.format("s_%03d_%03d_%s", countOfTestCase, j, step.getId()); if (step.getState().isFinishedWithoutErrors()) { data = addPerformanceDataRow(data, stepName, step.getDuration(), step.getWarningTime(), 0); } else { data = addUnknownPerformanceDataRow(data, stepName); } j++; } return data; }    }### Answer:
@Test public void testStepPerformanceDataUnknownData() throws Exception { assertEquals( AbstractPerformanceDataBuilder.addTestCaseStepPerformanceData( "", new TreeSet<>(Arrays.asList( new TestCaseStepExampleBuilder().withName("step1") .withState(TestCaseStepState.OK).buildExample(), new TestCaseStepExampleBuilder().withName("step2") .withState(TestCaseStepState.INIT).withStartDate(null).buildExample() )), 5 ), "s_005_001_step1=3.00s;4;;; s_005_002_step2=U;;;;"); }
@Test public void testStepPerformanceDataUnknownDataOnError() throws Exception { assertEquals( AbstractPerformanceDataBuilder.addTestCaseStepPerformanceData( "", new TreeSet<>(Arrays.asList( new TestCaseStepExampleBuilder().withName("step1") .withState(TestCaseStepState.OK).buildExample(), new TestCaseStepExampleBuilder().withName("step2") .withState(TestCaseStepState.ERRORS).withStartDate(null).buildExample() )), 5 ), "s_005_001_step1=3.00s;4;;; s_005_002_step2=U;;;;"); }