### Question:
AbstractPerformanceDataBuilder { protected static String addTestCasePerformanceData(String data, SortedSet<TestCase> testCases) { int i = 1; for (TestCase tc : testCases) { OutputState tcOutputState = OutputState.lookupSakuliState(tc.getState()); String prefix = String.format("c_%03d", i); data = addPerformanceDataRow(data, prefix + "__state", String.valueOf(tcOutputState.getErrorCode()), null, null); data = addPerformanceDataRow4Threshold(data, prefix, tc.getWarningTime(), tc.getCriticalTime()); final String caseName = prefix + "_" + tc.getId(); if (tc.getState() != null && tc.getState().isFinishedWithoutErrors()) { data = addPerformanceDataRow(data, caseName, tc.getDuration(), tc.getWarningTime(), tc.getCriticalTime()); } else { data = addUnknownPerformanceDataRow(data, caseName); } data = addTestCaseStepPerformanceData(data, tc.getStepsAsSortedSet(), i); i++; } return data; }    }### Answer:
@Test public void testCasePerformanceDataUnknownData() throws Exception { BaseTest.assertRegExMatch( AbstractPerformanceDataBuilder.addTestCasePerformanceData( "", new TreeSet<>(Collections.singletonList( new TestCaseExampleBuilder().withState(TestCaseState.ERRORS).buildExample() )) ), "c_001__state=2;;;; c_001__warning=4s;;;; c_001__critical=5s;;;; c_001_UNIT_TEST_CASE_\\d*=U;;;;.*"); }