EagleMetricResource { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public GenericCreateAPIResponseEntity createGenericMetricEntity(List<GenericMetricEntity> entities) { GenericCreateAPIResponseEntity result = new GenericCreateAPIResponseEntity(); try{ GenericEntityWriter writer = new GenericEntityWriter(GenericMetricEntity.GENERIC_METRIC_SERVICE); List<String> rowkeys = null; rowkeys = writer.write(entities); result.setEncodedRowkeys(rowkeys); result.setSuccess(true); return result; }catch(Exception ex){ LOG.error("Fail writing Generic Metric entity", ex); result.setSuccess(false); result.setException(ex.getMessage()); return result; } }  @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) GenericCreateAPIResponseEntity createGenericMetricEntity(List<GenericMetricEntity> entities); static final String METRIC_URL_PATH; }
@Test public void testCreateGenericMetricEntity() throws Exception { }