### Question:
QueryRelProvider implements RelProvider { @Override public String getItemResourceRelFor(Class<?> aClass) { return resourceRelationDescriptors.get(aClass).getItemResourceRel(); } QueryRelProvider(); @Override String getItemResourceRelFor(Class<?> aClass); @Override String getCollectionResourceRelFor(Class<?> aClass); @Override boolean supports(Class<?> aClass);  }### Answer:
@Test public void getItemResourceRelForShouldReturnProcessDefinitionWhenIsProcessDefinitionEntity() { String itemResourceRel = relProvider.getItemResourceRelFor(ProcessDefinitionEntity.class); assertThat(itemResourceRel).isEqualTo("processDefinition"); }
@Test public void getItemResourceRelForShouldReturnProcessInstanceWhenIsProcessInstanceEntity() { String itemResourceRel = relProvider.getItemResourceRelFor(ProcessInstanceEntity.class); assertThat(itemResourceRel).isEqualTo("processInstance"); }
@Test public void getItemResourceRelForShouldReturnTaskWhenIsTaskEntity() { String itemResourceRel = relProvider.getItemResourceRelFor(TaskEntity.class); assertThat(itemResourceRel).isEqualTo("task"); }
@Test public void getItemResourceRelForShouldReturnVariableWhenIsProcessVariableEntity() { String itemResourceRel = relProvider.getItemResourceRelFor(ProcessVariableEntity.class); assertThat(itemResourceRel).isEqualTo("variable"); }
@Test public void getItemResourceRelForShouldReturnVariableWhenIsTaskVariableEntity() { String itemResourceRel = relProvider.getItemResourceRelFor(TaskVariableEntity.class); assertThat(itemResourceRel).isEqualTo("variable"); }