@Test
public void testFindInvalidPerformanceMonitorBean() {

    String monitorName = "testFindInvalid";
    // Create a map with an invalid PerformanceMonitor (non-bean) in it,
    // and jam it in.
    Map<String, PerformanceMonitor> invalidMap =
      new HashMap<String, PerformanceMonitor>();
    invalidMap.put(monitorName, new PerformanceMonitor());
    ReflectionTestUtils.setField(
      factory, "performanceMonitorMap", invalidMap);
    // Try to find it.
    PerformanceMonitorBean foundMonitor =
      factory.findPerformanceMonitorBean(monitorName);
    assertNull(foundMonitor);
}