@Test
public void mockDialogBuilderWithListeners() {

    ArgumentCaptor<DialogInterface.OnClickListener> positive = ArgumentCaptor.forClass(DialogInterface.OnClickListener.class);
    ArgumentCaptor<DialogInterface.OnClickListener> negative = ArgumentCaptor.forClass(DialogInterface.OnClickListener.class);
    AlertDialog.Builder builder = AndroidMocks.mockDialogBuilder(positive, negative);
    assertThat(builder).isNotNull();
}