public void testDeployment() throws Exception {
WebArchive webArchive = ShrinkWrap.create( WebArchive.class, "test-acrhive" );
UrlRewriteRulesDescriptorImpl rules = new UrlRewriteRulesDescriptorImpl();
DeploymentContext context = EasyMock.createNiceMock( DeploymentContext.class );
EasyMock.expect( context.getDescriptor( "rewrite" ) ).andReturn( rules ).anyTimes();
EasyMock.expect( context.getWebArchive() ).andReturn( webArchive ).anyTimes();
Service service = EasyMock.createNiceMock( Service.class );
EasyMock.expect( service.getRole() ).andReturn( "OOZIE" ).anyTimes();
EasyMock.expect( service.getName() ).andReturn( null ).anyTimes();
EasyMock.expect( service.getUrl() ).andReturn( "http://test-host:777" ).anyTimes();