ApplicationValidationContext ctx = new ApplicationValidationContext();
CRepository repo = new CRepository();
repo.setId("id");
repo.setLocalStatus(LocalStatus.IN_SERVICE.toString());
ValidationResponse response = underTest.validateRepository(ctx, repo);
assertThat(response.isValid(), is(true));
assertThat(response.isModified(), is(true));
assertThat(response.getValidationErrors(), hasSize(0));
assertThat(response.getValidationWarnings(), hasSize(1));
ValidationMessage actual = response.getValidationWarnings().get(0);
assertThat(actual, hasKey("id"));
}