}
@Test
public void allureClearStorageTest() {
TestSuiteResult testSuite = fireTestSuiteStart();
TestCaseResult testCase = fireTestCaseStart();
assertThat(testSuite.getTestCases(), hasSize(1));
assertEquals(testSuite.getTestCases().get(0), testCase);
Step parentStep = fireStepStart();
Step nestedStep = fireStepStart();
fireStepFinished();
assertThat(parentStep.getSteps(), hasSize(1));
assertTrue(parentStep.getSteps().get(0) == nestedStep);
fireStepFinished();
fireClearStepStorage();
assertThat(testCase.getSteps(), hasSize(0));
fireClearTestStorage();
TestCaseResult afterClearing = Allure.LIFECYCLE.getTestCaseStorage().get();
assertFalse(testCase == afterClearing);
checkTestCaseIsNew(afterClearing);
}