@Override
	public WhitelistedSite saveNew(WhitelistedSite whitelistedSite) {
		if (whitelistedSite.getId() != null) {
			throw new IllegalArgumentException("A new whitelisted site cannot be created with an id value already set: " + whitelistedSite.getId());
		}
		return repository.save(whitelistedSite);
	}
@Test
	public void saveNew_success() {
		WhitelistedSite site = Mockito.mock(WhitelistedSite.class);
		Mockito.when(site.getId()).thenReturn(null);

		service.saveNew(site);

		Mockito.verify(repository).save(site);
	}