Issue #14: Export: Add tests using arquillian for the Rest interface + refactoring db clients