### Question:
ProcessorWebUtils { static ComponentDetails getComponentDetails(final NiFiWebConfigurationContext configurationContext,final String processorId, HttpServletRequest request){ final NiFiWebRequestContext requestContext = getRequestContext(processorId,request); return configurationContext.getComponentDetails(requestContext); }    }### Answer:
@Test public void testGetComponentDetailsForProcessor(){ HttpServletRequest request = mock(HttpServletRequest.class); NiFiWebConfigurationContext configurationContext = mock(NiFiWebConfigurationContext.class); when(configurationContext.getComponentDetails(any(HttpServletRequestContext.class))).thenReturn(new ComponentDetails.Builder().build()); ComponentDetails componentDetails = ProcessorWebUtils.getComponentDetails(configurationContext,"1",request); assertNotNull(componentDetails); }
@Test public void testGetComponentDetailsForProcessorWithSpecificClientRevision(){ NiFiWebConfigurationContext configurationContext = mock(NiFiWebConfigurationContext.class); when(configurationContext.getComponentDetails(any(HttpServletConfigurationRequestContext.class))).thenReturn(new ComponentDetails.Builder().build()); ComponentDetails componentDetails = ProcessorWebUtils.getComponentDetails(configurationContext,"1",mock(HttpServletRequest.class)); assertNotNull(componentDetails); }