@Test(expected=OperationNotFoundException.class)
public void testGetOperationInfoThrowsOperationNotFoundException() throws Exception {

    String operationName = "nonexistent";
    expect(mockObjectName.getCanonicalName()).andReturn("some_name");
    MBeanOperationInfo[] operationList = new MBeanOperationInfo[0];
    expect(mockSanitizer.urlDecode(operationName, ENCODING)).andReturn(operationName);
    expect(mockMBeanInfo.getOperations()).andReturn(operationList);
    replay(mockMBeanServer, mockSanitizer, mockObjectName, mockMBeanInfo);
    webMBeanAdapter.getOperationInfo(operationName);
}