ValidateEsmExists implements InstallServiceValidator, InstallApplicationValidator { @Override public void validate(final InstallApplicationValidationContext validationContext) throws RestErrorException { validateEsmExists(validationContext.getAdmin()); }  @Override void validate(final InstallApplicationValidationContext validationContext); @Override void validate(final InstallServiceValidationContext validationContext);  }
@Test public void testServiceEsmExists() { InstallServiceValidationContext validationContext = new InstallServiceValidationContext(); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateEsmExists, validationContext, ERR_MSG); }
@Test public void testApplicationEsmExists() { InstallApplicationValidationContext validationContext = new InstallApplicationValidationContext(); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateEsmExists, validationContext, ERR_MSG); }