`assertFalse(attrs.contains(...` would be more readable.

Also presumably could have not bothered with transform, and done `getAllAttributes().keySet().contains(SENSOR_STRING)`.