JUnit tests with pub/sub filtering.