AlertsCountContext { public String getSearchText() { return searchText; } private  AlertsCountContext(AlertsCountContextBuilder builder); boolean isCountUserAlerts(); boolean isCountSharedAlerts(); boolean isCountPrivateAlerts(); PrincipalUser getPrincipalUser(); String getSearchText();  }
@Test public void getSearchText() { AlertsCountContext context = new AlertsCountContext.AlertsCountContextBuilder().countPrivateAlerts() .setPrincipalUser(owner).setSearchText(searchText).build(); assertEquals(searchText, context.getSearchText()); }