@Test
public void testAddCriterion() {

	Criteria criteria = new Criteria();
	String key = randomString();
	Criteria.Type type = Criteria.Type.CONTEXT;
	String filterString = randomString();
	Criteria.Conjunction conjunction = Criteria.Conjunction.AND;
	criteria.addCriterion(key, type, filterString, conjunction);
	Criteria.Criterion criterion = criteria.getCriterion(key);
	Assert.assertEquals(filterString, criterion.getFilterString());
	Assert.assertEquals(type.getValue(), criterion.getTypeValue());
	Assert.assertEquals(conjunction.getValue(), criterion.getConjunction());
}