public void test1New() throws Exception
{
ResteasyDeployment deployment = new ResteasyDeployment();
deployment.setRegisterBuiltin(false);
ResteasyProviderFactory factory = new ResteasyProviderFactory();
factory.registerProviderInstance(new DefaultTextPlain());
factory.registerProviderInstance(new TestReaderWriter());
factory.registerProviderInstance(new TestReaderWriter());
deployment.setProviderFactory(factory);
EmbeddedContainer.start(deployment);
dispatcher = deployment.getDispatcher();