private ObjectName oName;
@BeforeTest
public void createHandler() throws MalformedObjectNameException, MBeanException, InstanceAlreadyExistsException, IOException, NotCompliantMBeanException, ReflectionException {
handler = new WriteHandler(new AllowAllRestrictor(),new Converters());
oName = new ObjectName("jolokia:test=write");
MBeanServer server = getMBeanServer();
server.createMBean(WriteData.class.getName(), oName);