@Test
public void onCreateWithAppCompat() {

  when(myEditor.getMinSdkVersion()).thenReturn(new AndroidVersion(27, null));
  when(myEditor.moduleDependsOnAppCompat()).thenReturn(true);
  myHandler.onCreate(myEditor, null, newChild, InsertType.CREATE);
  Mockito.verify(newChild).setAttribute(AUTO_URI, "actionViewClass", "android.widget.SearchView");
}