Resource.controllerMethods() + unit-tests