// Path: src/main/java/se/fearless/fettle/util/PredicateCondition.java
// public class PredicateCondition<C> implements Condition<C> {
// 
// 	private final Predicate<? super C> predicate;
// 
// 	public PredicateCondition(Predicate<? super C> predicate) {
// 		this.predicate = predicate;
// 	}
// 
// 	@Override
// 	public boolean isSatisfied(C context) {
// 		return predicate.test(context);
// 	}
// }


import com.google.common.base.Predicates;
import org.junit.Test;
import se.fearless.fettle.util.PredicateCondition;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package se.fearless.fettle;



public class PredicateConditionTest {

	@Test
	public void predicate() {
// Path: src/main/java/se/fearless/fettle/util/PredicateCondition.java
// public class PredicateCondition<C> implements Condition<C> {
// 
// 	private final Predicate<? super C> predicate;
// 
// 	public PredicateCondition(Predicate<? super C> predicate) {
// 		this.predicate = predicate;
// 	}
// 
// 	@Override
// 	public boolean isSatisfied(C context) {
// 		return predicate.test(context);
// 	}
// }


// Path: src/test/java/se/fearless/fettle/PredicateConditionTest.java
import com.google.common.base.Predicates;
import org.junit.Test;
import se.fearless.fettle.util.PredicateCondition;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

package se.fearless.fettle;



public class PredicateConditionTest {

	@Test
	public void predicate() {
		PredicateCondition<String> condition = new PredicateCondition<>(Predicates.containsPattern("foo")::apply);