}
private Format formatToUse(EasyFrameworkMethod testMethod) {
Format policyLevelFormat = null;
TestPolicy testPolicy = fClass.getJavaClass().getAnnotation(TestPolicy.class);
if(testPolicy != null) {
policyLevelFormat = testPolicy.value().getAnnotation(Format.class);
}
Format classLevelFormat = fClass.getJavaClass().getAnnotation(Format.class);
Format methodLevelFormat = testMethod.getAnnotation(Format.class);
Format formatToUse = methodLevelFormat != null ? methodLevelFormat : classLevelFormat != null ? classLevelFormat : policyLevelFormat;
return formatToUse;
}