@Test
public void testJoinerMap() {
entity.enrichers().add(Enrichers.builder()
.joining(MAP_SENSOR)
.keyValueSeparator("=")
.joinMapEntries(true)
.publishing(TestEntity.NAME)
.build());
entity.sensors().set(MAP_SENSOR, MutableMap.<String, String>of("a", "\"v", "b", "w x y"));
EntityAsserts.assertAttributeEqualsEventually(entity, TestEntity.NAME, "\"a=\\\"v\",\"b=w x y\"");
entity.sensors().set(MAP_SENSOR, MutableMap.<String, String>of());
EntityAsserts.assertAttributeEqualsEventually(entity, TestEntity.NAME, "");
}