@Test
public void whenTaskNameToUpdateIsValidExpectTaskIsValid() {

    when(taskTemplateRepository.get(VALID_TASK_NAME)).thenReturn(Collections.EMPTY_LIST);
    ValidationResult validationResult = taskValidation
            .isUpdateNameValid(TASK_ID, VALID_TASK_NAME);
    assertThat(validationResult.getValidationStatus(), is(ValidationStatus.VALID));
}