}
private static <T extends Annotation> String[] getAnnotationValue(final Class<T> annotation, final Method method) {
if (annotation == Given.class) {
if (method.isAnnotationPresent(Given.class)) {
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();