PolicyContext context = new PolicyContext();
AbstractComponent mockChild = Mockito.mock(AbstractComponent.class);
context.setProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), comp);
context.setProperty(PolicyContext.PropertyName.SOURCE_COMPONENTS.getName(), Collections.singleton(mockChild));
Assert.assertTrue(new CanRemoveComponentPolicy().execute(context).getStatus());
}