Use Serializer to clean the JAX-RS service and use JUNIt.