@Test
public void performLogArchivingForSwitchTest()
    throws Exception, IllegalArgumentException
{

    // PowerMockito.method(HMSDebuggerComponent.class, parameterTypes)
    Mockito.doReturn( "logs archive directory" ).when( debuggerUtil ).archiveHmsDebugLogs( anyString(), anyString(),
                                                                                           anyString(), anyString(),
                                                                                           anyString(), anyString(),
                                                                                           anyString(), anyInt(),
                                                                                           Matchers.any( EventComponent.class ) );
    BaseResponse responseMock = new BaseResponse();
    responseMock.setStatusCode( 200 );
    responseMock.setStatusMessage( "Hms debug logs archive will be created shortly at logs archive directory" );
    // HmsLocalRestServiceMgmt hmsLocalServerRestService = new HmsLocalRestServiceMgmt();
    // when(debuggerUtil.archiveHmsDebugLogs(anyString(), anyString(), anyString(), anyString(), anyString(),
    // anyString(), anyString(), anyInt(), Matchers.any(EventComponent.class))).thenReturn("logs archive
    // directory");
    // Call to perform archiving for the switch
    BaseResponse response = hmsLocalRestServiceMgmt.performLogArchivingForSwitch( "S1", "100", HttpMethod.PUT );
    // check if the response is returned with a status code 200
    assertNotNull( response );
    assertEquals( response.getStatusCode(), responseMock.getStatusCode() );
}