Implement a JUnit test for a rest service
问题 I have to implement some JUnit tests for my rest services. For instance this is one of my Rest services: @Path("/dni-fe") public class HelloWorld { @POST @Path("/home") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public MachineResponse doMachineRegister(MachineBean machineBean) { MachineResponse response = new MachineResponse(); String name = machineBean.getName(); String country = machineBean.getCountry(); String company = machineBean.getCompany(); String