* annotation on method takes precedence over annotation on class. At the
* moment class level annotation will cause multiple entries in the result
* if there are more than one test methods.
*/
private static Optional<Feature> getFeature(Description description) {
Feature testClassFeature =
description.getTestClass().getAnnotation(Feature.class);
Feature testMethodFeature = description.getAnnotation(Feature.class);
return Optional.fromNullable(testMethodFeature).or(
Optional.fromNullable(testClassFeature));
}