verify(server);
}
private List<String> doSearch(String pPattern, String pUseCanonicalName, String ... pFoundNames) throws MalformedObjectNameException, IOException, InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, NotChangedException {
ObjectName oName = new ObjectName(pPattern);
JmxSearchRequest request = new JmxRequestBuilder(RequestType.SEARCH,oName).option(ConfigKey.CANONICAL_NAMING,pUseCanonicalName).build();
server = createMock(MBeanServer.class);
Set<ObjectName> names = new HashSet<ObjectName>();
for (String name : pFoundNames) {
names.add(new ObjectName(name));