/**
  * Mocks a Relationship Resource
  *
  * @return ResourceMetadata a Relationship
  */
 private static ResourceMetadata mockRelationship() {
   ResourceMetadata resourceMock = mock(ResourceMetadata.class);
   when(resourceMock.getType()).thenReturn(ResourceMetadata.RESOURCE_TYPE.RELATIONSHIP);
   when(resourceMock.getObjectType(HttpMethod.PUT)).thenReturn(Farmer.class);
   when(resourceMock.getObjectType(HttpMethod.POST)).thenReturn(Farmer.class);
   return resourceMock;
 }
 /**
  * Mocks a Property Resource
  *
  * @return ResourceMetadata a Entity
  */
 private static ResourceMetadata mockProperty() {
   ResourceMetadata resourceMock = mock(ResourceMetadata.class);
   when(resourceMock.getType()).thenReturn(ResourceMetadata.RESOURCE_TYPE.PROPERTY);
   // when(resourceMock.getObjectType(HttpMethod.PUT)).thenReturn(Farmer.class);
   // when(resourceMock.getObjectType(HttpMethod.POST)).thenReturn(Farmer.class);
   return resourceMock;
 }