}
public void testLoDMultipleDifferentInvocations() throws Exception {
ClassInfo clazz = repo.getClass(LoDMultipleDifferentInvocations.class.getCanonicalName());
MethodInfo methodInfo = clazz.getMethod(method("execute", Obj.class));
CostRecordingFrame frame = visitor.createFrame(methodInfo, 1);
frame.applyMethodOperations();
assertEquals(2, frame.getLoDCount(clazz.getField("plus2")));
MethodCost methodCost = frame.getMethodCost();
List<LoDViolation> costSources = filterLoD(methodCost.getViolationCosts());
assertEquals(1, costSources.size());
LoDViolation violation = costSources.get(0);
assertTrue(violation.getDescription().contains("getValueB()"));
assertTrue(violation.getDescription().contains("[distance=2]"));