### Question:
DatabaseMailStatusStore implements MailStatusStore { protected String computeCountQueryString(Map<String, Object> filterMap) { return computeQueryString(String.format("select count(*) from %s", MailStatus.class.getName()), filterMap, null, false); }  @Override void save(final MailStatus status, final Map<String, Object> parameters); @Override MailStatus load(String uniqueMessageId); @Override List<MailStatus> load(final Map<String, Object> filterMap, final int offset, final int count,
        String sortField, boolean sortAscending); @Override long count(final Map<String, Object> filterMap); @Override void delete(final String uniqueMessageId, Map<String, Object> parameters);  }### Answer:
@Test public void computeCountQueryString() throws Exception { Map<String, Object> filterMap = new LinkedHashMap<>(); filterMap.put("status", "failed"); filterMap.put("wiki", "mywiki"); assertEquals("select count(*) from org.xwiki.mail.MailStatus where mail_status like :status and " + "mail_wiki like :wiki", this.mocker.getComponentUnderTest().computeCountQueryString(filterMap)); }