@Test
public void whenPlanNameIsAlreadyInDbWithSameIdExpectUpdateNameValidationPasses() {

    duplicatedPlanTemplate.setId(PLAN_ID);
    when(planTemplateRepository.get(VALID_PLAN_NAME))
            .thenReturn(Collections.singletonList(duplicatedPlanTemplate));
    ValidationResult validationResult = planValidation.isUpdateNameValid(
            PLAN_ID, VALID_PLAN_NAME);
    assertThat(validationResult.getValidationStatus(), is(ValidationStatus.VALID));
}