// Public API methods
// ---------------------------------------------------------------------------------------------------
public TestExecutionPhase getCleanupUsingScriptTestPhase()
{
final CleanupUsingScript cleanupAnnotation = metadataExtractor.cleanupUsingScript().fetchUsingFirst(testMethod);
TestExecutionPhase phase = configuration.getDefaultCleanupUsingScriptPhase();
if (cleanupAnnotation != null && !TestExecutionPhase.DEFAULT.equals(cleanupAnnotation.phase()))
{
phase = cleanupAnnotation.phase();
}
return phase;
}