AamWriterResource implements Resource { @POST @Timed @Path("translate") @Consumes(MediaType.APPLICATION_JSON) @Produces("application/x-yaml") @ApiOperation("Get SeaClouds-compliant AAM from topology-editor") public String translateDesignerModel(@ApiParam() String topology) { return AAM_WRITER.writeAam(topology); }  @POST @Timed @Path("translate") @Consumes(MediaType.APPLICATION_JSON) @Produces("application/x-yaml") @ApiOperation("Get SeaClouds-compliant AAM from topology-editor") String translateDesignerModel(@ApiParam() String topology);  }
@Test public void testTranslateDesignerModel() throws Exception { String response = aamWriterResource.translateDesignerModel(this.getTopology()); assertNotNull(response); }