FileResource { @ApiOperation(value = "product-instances") @Path("/{workspaceId}/product-instances/{serialNumber}/{ciId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) public ProductInstanceBinaryResource productInstanceFile() { return productInstanceBinaryResource; } FileResource(); @ApiOperation(value = "documents") @Path("/{workspaceId}/documents/{documentId}/{version}") DocumentBinaryResource documentFile(); @ApiOperation(value = "parts") @Path("/{workspaceId}/parts/{partNumber}/{version}") PartBinaryResource partFile(); @ApiOperation(value = "document-templates") @Path("/{workspaceId}/document-templates/{templateId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) DocumentTemplateBinaryResource documentTemplateFile(); @ApiOperation(value = "part-templates") @Path("/{workspaceId}/part-templates/{templateId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) PartTemplateBinaryResource partTemplateFile(); @ApiOperation(value = "product-instances") @Path("/{workspaceId}/product-instances/{serialNumber}/{ciId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) ProductInstanceBinaryResource productInstanceFile();  }
@Test public void productInstanceFileTest() { ProductInstanceBinaryResource _productInstanceBinaryResource = resource.productInstanceFile(); Assert.assertEquals(productInstanceBinaryResource, _productInstanceBinaryResource); }