final String expectedMethodName,
final Class... expectedParamTypes) {
final String expectedOwnerName = typeEncoding(expectedOwner);
final boolean[] found = new boolean[1];
found[0] = false;
analysed.findInstruction(new AbstractInstructionVisitor() {
@Override
public void methodInvocation(final Instruction instruction, final String owner, final String methodName, final String... args) {
if (!found[0] && expectedOwnerName.equals(owner) &&
expectedMethodName.equals(methodName)) {
Instruction prevInstruction = analysed.getInstruction(instruction.getInstructionIndex() - 1);