@Test
public void cleanHmsLogs_validInput()
    throws Exception
{

    File fileMock = mock( File.class );
    when( fileMock.canWrite() ).thenReturn( true );
    when( fileMock.getParentFile() ).thenReturn( fileMock );
    when( fileMock.isDirectory() ).thenReturn( true );
    when( fileMock.exists() ).thenReturn( true );
    File[] dummyFiles = { fileMock };
    when( fileMock.listFiles() ).thenReturn( dummyFiles );
    when( fileMock.getName() ).thenReturn( "N1_hms_logs_2015-03-03_00-00-00.zip" );
    when( fileMock.delete() ).thenReturn( true );
    whenNew( File.class ).withArguments( anyString() ).thenReturn( fileMock );
    debuggerUtil.cleanHmsDebugLogs( "testFile" );
}