@Test
public void getHMSLogsTest_fileNotExists()
    throws Exception
{

    File fileMock = mock( File.class );
    whenNew( File.class ).withArguments( anyString() ).thenReturn( fileMock );
    when( fileMock.canWrite() ).thenReturn( true );
    when( fileMock.getParentFile() ).thenReturn( fileMock );
    when( fileMock.getParentFile().exists() ).thenReturn( true );
    when( fileMock.getParentFile().mkdirs() ).thenReturn( true );
    when( fileMock.createNewFile() ).thenReturn( true );
    PowerMockito.mockStatic( ZipUtil.class );
    when( ZipUtil.zipFiles( any( String.class ), any( String.class ) ) ).thenReturn( true );
    HMSManagementRestService service = new HMSManagementRestService();
    Response response = service.getHmsLogs();
    assertNotNull( response );
    assertEquals( response.getStatus(), 404 );
}