### Question:
MonitorEnterOp extends MethodStateOp { @Override public String toString() { return getName() + " r" + destRegister; } MonitorEnterOp(MethodLocation location, MethodLocation child, int destRegister); @Override void execute(ExecutionNode node, MethodState mState); @Override String toString();  }### Answer:
@Test public void monitorEnterHasExpectedTostring() { String methodDescriptor = "monitorEnter()V"; VirtualMachine vm = VMTester.spawnVM(); ExecutionGraph graph = vm.spawnInstructionGraph(CLASS_NAME, methodDescriptor); ExecutionNode node = graph.getTemplateNode(1); assertEquals("monitor-enter r0", node.getOp().toString()); }