### Question:
UserPriceSourcesResource extends ServerResource { @Post("json") public String addSource(PriceSource source) throws IOException { PriceSource result = priceService.addSource(bozhuPrice, source); setStatus(Status.SUCCESS_CREATED); return JsonUtils.getObjectMapper().writer(PriceSource.emptyFilters).writeValueAsString(result); }  @Override void doInit(); @Get("json") String list(); @Post("json") String addSource(PriceSource source);  }### Answer:
@Test @Ignore public void testAddSource() throws Exception { ClientResource sources = new ClientResource("http: Representation resp = sources.post(new JacksonRepresentation<>(new PriceSource(1, "测试渠道", "qq", "phone"))); assertEquals("http: sources.release(); }