public final class WebServiceRemovingPolicyJUnitTest {
@Test
public void testAllowed() {
OperationPipeline pipeline = WebServiceOperationType.TYPE.createNewTemplate();
PipelineActivity source = pipeline.getFirstActivity();
WebServicePipelineBrowser browser = new WebServicePipelineBrowser(pipeline);
PipelineActivity response = browser.getResponseActivity();
PipelineActivity target = pipeline.getNextActivity(response);
try {
pipeline.removeActivity(source);
pipeline.removeActivity(target);
} catch (RemoveActivityVetoException ex) {
fail();