@Test
public void generateSearchQueryTest() {

    String result = driveHelper.generateSearchQuery(null, null, null);
    assertNull(result);
    result = driveHelper.generateSearchQuery("sample-folder", null, null);
    assertEquals("name = 'sample-folder' and trashed = false", result);
    result = driveHelper.generateSearchQuery(null, "some-parent-id", null);
    assertEquals("'some-parent-id' in parents and trashed = false", result);
    result = driveHelper.generateSearchQuery(null, null, "xml-mime-type");
    assertEquals("mimeType = 'xml-mime-type' and trashed = false", result);
    result = driveHelper.generateSearchQuery("sample-folder", null, "xml-mime-type");
    assertEquals("name = 'sample-folder' and mimeType = 'xml-mime-type' and trashed = false", result);
    result = driveHelper.generateSearchQuery("sample-folder", "some-parent-id", "xml-mime-type");
    assertEquals("name = 'sample-folder' and 'some-parent-id' in parents and mimeType = 'xml-mime-type' and trashed = false", result);
}