@Test
public void queryNames() throws IOException, MalformedObjectNameException, NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException {

    Set<ObjectName> names = executor.queryNames(null);
    assertTrue(names.contains(new ObjectName("test:type=one")));
    assertTrue(names.contains(new ObjectName("test:type=two")));
    assertEquals(names.size(), 3);
}