final Given given = method.getAnnotation(Given.class);
return given.value();
}
} else if (annotation == When.class) {
if (method.isAnnotationPresent(When.class)) {
final When when = method.getAnnotation(When.class);
return when.value();
}
} else if (annotation == Then.class) {
if (method.isAnnotationPresent(Then.class)) {
final Then then = method.getAnnotation(Then.class);
return then.value();