Operations { public static List<Operation> getOperations(Class<?> someClass) { try { return operations.get(someClass); } catch (ExecutionException e) { throw new Error(e); } }  static List<Operation> getOperations(Class<?> someClass); static List<Operation> computeOperationsForClass(Class<?> someClass); static Operation getOperation(Method method); static boolean doGuardsPass(Object actionBean, Method method); static boolean doGuardsPass(Object actionBean, Method method, @Nullable GuardType type); static List<Guard> getGuards(Method method, GuardType type); static final String copyright; }
@Test public void testOperations() { List<Operation> operations = Operations.getOperations(SomeResource.class); assertEquals(operations.size(), 2); for(Operation op : operations) { verifyOperation(op); } }