public class BatchConstraintTestCase extends AbstractMuleTestCase
{
public void testConstraintFilter() throws Exception
{
MuleEvent testEvent = Mockito.mock(MuleEvent.class);
BatchConstraint filter = new BatchConstraint();
filter.setBatchSize(3);
assertEquals(3, filter.getBatchSize());
assertTrue(!filter.accept(testEvent));
ConstraintFilter clone = (ConstraintFilter)filter.clone();
assertNotNull(clone);
assertNotSame(filter, clone);
assertTrue(!filter.accept(testEvent));
assertTrue(filter.accept(testEvent));
}