@Test
public void openLinkFromUri() throws Exception {

    final String baseUrl = "/root/path";
    final String humanLink = "Gen 1:1";
    initMocks(baseUrl, humanLink);
    when(librarian.openChapter(any())).thenReturn(mock(Chapter.class));
    presenter.openLink(Uri.parse("http://bq.app/Gen/1_1/RST"));
    ArgumentCaptor<BibleReference> captorBR = ArgumentCaptor.forClass(BibleReference.class);
    verify(librarian).openChapter(captorBR.capture());
    assertEquals("RST.Gen.1.1", captorBR.getValue().getPath());
    verify(librarian).getCurrModule();
    verify(view).setTextFormatter(any(ModuleTextFormatter.class));
    verify(view).setContent(eq(baseUrl), any(Chapter.class), eq(1), eq(true));
    verify(view).setTitle(eq("RST"), eq(humanLink));
    InOrder progressOrder = inOrder(view);
    progressOrder.verify(view).showProgress(eq(false));
    progressOrder.verify(view).hideProgress();
}