Source:
public void testFilter ( ) { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( ( "include:message1(smtp:alonbl@redhat.com) " + ( ( ( ( ( ( ( ( ( ( "include:message2(smtp:alonbl@redhat.com) " + "exclude:message3(smtp:alonbl@redhat.com) " ) + "exclude:message1(smtp:alonbl@redhat.com) " ) + "include:message2(smtp:alon.barlev@gmail.com) " ) + "include:message1(smtp:alonbl@gentoo.org) " ) + "exclude:message1(snmp:profile1) " ) + "exclude:message2(snmp:profile1) " ) + "include:*(snmp:profile2) " ) + "include:*(snmp:profile1) " ) + "exclude:*" ) + "" ) ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message2" ) ) ; org.junit.Assert.assertTrue ( snmp.getEvents ( ) . contains ( "message0-->profile1" ) ) ; org.junit.Assert.assertTrue ( snmp.getEvents ( ) . contains ( "message0-->profile2" ) ) ; org.junit.Assert.assertTrue ( snmp.getEvents ( ) . contains ( "message1-->profile2" ) ) ; org.junit.Assert.assertTrue ( snmp.getEvents ( ) . contains ( "message2-->profile2" ) ) ; org.junit.Assert.assertEquals ( 4 , snmp.getEvents ( ) . size ( ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message1-->alonbl@gentoo.org" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message1-->alonbl@redhat.com" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message2-->alon.barlev@gmail.com" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message2-->alonbl@redhat.com" ) ) ; org.junit.Assert.assertEquals ( 4 , smtp.getEvents ( ) . size ( ) ) ; }

Target:
public void testFilter ( ) { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.parse ( ( "include:message1(smtp:alonbl@redhat.com) " + ( ( ( ( ( ( ( ( ( ( "include:message2(smtp:alonbl@redhat.com) " + "exclude:message3(smtp:alonbl@redhat.com) " ) + "exclude:message1(smtp:alonbl@redhat.com) " ) + "include:message2(smtp:alon.barlev@gmail.com) " ) + "include:message1(smtp:alonbl@gentoo.org) " ) + "exclude:message1(snmp:profile1) " ) + "exclude:message2(snmp:profile1) " ) + "include:*(snmp:profile2) " ) + "include:*(snmp:profile1) " ) + "exclude:*" ) + "" ) ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message2" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( snmp.getEvents ( ) . contains ( "message0-->profile1" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( snmp.getEvents ( ) . contains ( "message0-->profile2" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( snmp.getEvents ( ) . contains ( "message1-->profile2" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( snmp.getEvents ( ) . contains ( "message2-->profile2" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , snmp.getEvents ( ) . size ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( "message1-->alonbl@gentoo.org" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( "message1-->alonbl@redhat.com" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( "message2-->alon.barlev@gmail.com" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( smtp.getEvents ( ) . contains ( "message2-->alonbl@redhat.com" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , smtp.getEvents ( ) . size ( ) ) ; }