### Question:
LikeToEqTransformationAsgStrategy implements AsgStrategy { @Override public void apply(AsgQuery query, AsgStrategyContext context) { AsgQueryUtil.elements(query, EPropGroup.class).forEach(ePropGroupAsgEBase -> { transformGroup(ePropGroupAsgEBase.geteBase()); }); }  @Override void apply(AsgQuery query, AsgStrategyContext context);  }### Answer:
@Test public void testTransformLike(){ AsgQuery query = Q1(); LikeToEqTransformationAsgStrategy strategy = new LikeToEqTransformationAsgStrategy(); strategy.apply(query, null); EPropGroup actualGroup = (EPropGroup) query.getStart().getNext().get(0).getNext().get(0).getNext().get(0).geteBase(); Assert.assertEquals(1, actualGroup.getProps().size()); Assert.assertTrue(actualGroup.getProps().get(0).getCon().equals(Constraint.of(ConstraintOp.eq, "abc"))); }
@Test public void testNotTransformedLike(){ AsgQuery query = Q2(); LikeToEqTransformationAsgStrategy strategy = new LikeToEqTransformationAsgStrategy(); strategy.apply(query, null); EPropGroup actualGroup = (EPropGroup) query.getStart().getNext().get(0).getNext().get(0).getNext().get(0).geteBase(); Assert.assertEquals(1, actualGroup.getProps().size()); Assert.assertTrue(actualGroup.getProps().get(0).getCon().equals(Constraint.of(ConstraintOp.like, "*abc"))); }