    @Test
    public void searchesBouts() throws Exception {

        final String urn = "urn:test:2";
        final MkBase base = new MkBase();
        final Aliases aliases = base.user(new URN(urn)).aliases();
        aliases.add("test2");
        final Inbox inbox = aliases.iterate().iterator().next().inbox();
        final Bout first = inbox.bout(inbox.start());
        final String firsttitle = "bout1 title";
        first.rename(firsttitle);
        first.messages().post("hello");
        final Bout second = inbox.bout(inbox.start());
        final String secondtitle = "bout2 title";
        second.rename(secondtitle);
        second.messages().post("message with term");
        final String thirdtitle = "bout title with term";
        inbox.bout(inbox.start()).rename(thirdtitle);
        final String body = new RsPrint(
            new TkAuth(
                new TkInbox(base),
                new PsFixed(new Identity.Simple(urn))
            ).act(
                new RqFake(
                    RqMethod.GET,
                    String.format(
                        "/search?q=%s",
                        "term"
                    )
                )
            )
        ).printBody();
        MatcherAssert.assertThat(
            body,
            Matchers.containsString(secondtitle)
        );
        MatcherAssert.assertThat(
            body,
            Matchers.containsString(thirdtitle)
        );
        MatcherAssert.assertThat(
            body,
            Matchers.not(Matchers.containsString(firsttitle))
        );
    }