	@Test
	public void when_support_says_infracan_uri_is_not_whitelisted_a_notacceptable_exception_is_thrown() throws Exception{

		/* test */
		expectedException.expect(NotAcceptableException.class);

		/* prepare */
		whiteListFoundForProject.add(new ProjectWhitelistEntry(projectId, new URI(IP_ADRESS_2)));
		when(support.isWhitelisted(eq(IP_ADRESS_1), any())).thenReturn(false); // not whitelisted - so failure expected

		/* execute */
		serviceToTest.assertAllowedForProject(configureSecHub().projectId(projectId).infraConfig().addURI(IP_ADRESS_1).build());

	}