Renamed SpringBeansAccess to springBeansAccess in Spring configuration file to conform to conventions.
Use a Provider to provide the repository instance (via @Inject) so that we can provide a different one for the tests.
Re-wrote tests to use JerseyTest instead of RESTEasy and removed RESTEasy dependencies.
Added missing HK2 dependency in import-packages.
Struggled the whole day with this: jersey doesn't like test framework classes being embedded in the resource artifact. Then again, test dependencies have no business being there but the resulting errors (org.glassfish.jersey.internal.inject.Providers checkProviderRuntime WARNING: A provider org.jahia.modules.jcrestapi.API registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.jahia.modules.jcrestapi.API will be ignored. and similar) were quite cryptic. :(