@Test
public void testLabels() {

	// we don't want to use LocalDockerDaemonIntegrationTest because it will only work with a local docker daemon
	Projector p = getProjector();
	SwarmScanner ss = new SwarmScanner(p.createBuilder(DockerScannerBuilder.class).build());
	
	String id = "junit-"+System.currentTimeMillis();
	JsonNode actual = p.getNeoRxClient().execCypher("merge (x:DockerService {serviceId:{id}}) set x.label_c='c', x.label_foo='foo', x.junitData=true return x","id",id).blockingFirst();
	
	JsonNode intended = mapper.createObjectNode().put("label_a", "1").put("label_b", "2").put("chinacat","sunflower");
	
	p.getNeoRxClient().execCypher("merge (a:DockerService {serviceId:{id}}) set a+={props} return a","id",id,"props",intended);

	ss.removeDockerLabels("DockerService","serviceId",id,intended, actual);
	
	JsonNode result = p.getNeoRxClient().execCypher("match (x:DockerService {serviceId:{id}}) return x","id",id).blockingFirst();
	Assertions.assertThat(result.path("serviceId").asText()).isEqualTo(id);
	Assertions.assertThat(result.has("label_c")).isFalse();
	Assertions.assertThat(result.has("label_foo")).isFalse();
	Assertions.assertThat(result.get("label_a").asText()).isEqualTo("1");
}