@@ -0,0 +1,2520 @@
+/*%0A * Copyright 2015, Red Hat, Inc. and individual contributors as indicated by the%0A * @author tags. See the copyright.txt file in the distribution for a full%0A * listing of individual contributors.%0A *%0A * This is free software; you can redistribute it and/or modify it under the%0A * terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A *%0A * This software is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this software; if not, write to the Free Software Foundation,%0A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF%0A * site: http://www.fsf.org.%0A */%0Apackage org.zanata.ui;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.testng.annotations.Test;%0Aimport org.zanata.common.LocaleId;%0Aimport org.zanata.model.HLocale;%0Aimport org.zanata.model.HPerson;%0A%0Aimport com.google.common.collect.Lists;%0A%0Aimport java.util.List;%0A%0A/**%0A * @author Carlos Munoz %3Ca%0A *         href=%22mailto:camunoz@redhat.com%22%3Ecamunoz@redhat.com%3C/a%3E%0A */%0A@Test%0Apublic class FilterUtilTest %7B%0A%0A    private static final List%3CHLocale%3E ALL_LOCALES = Lists.newArrayList(%0A            new HLocale(%0A                    LocaleId.DE), new HLocale(LocaleId.EN), new HLocale(%0A                    LocaleId.FR));%0A%0A    @Test%0A    public void filterOutEmptyPersonList() throws Exception %7B%0A        assertThat(%0A                FilterUtil.filterOutPersonList(Lists.%3CHPerson%3E newArrayList(),%0A                        Lists.%3CHPerson%3E newArrayList())).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void filterOutSamePersonList() throws Exception %7B%0A        HPerson person1 = new HPerson();%0A        HPerson person2 = new HPerson();%0A        HPerson person3 = new HPerson();%0A        List%3CHPerson%3E all = Lists.newArrayList(person1, person2, person3);%0A        List%3CHPerson%3E filter = Lists.newArrayList(person1, person2, person3);%0A%0A        assertThat(%0A                FilterUtil.filterOutPersonList(all, filter)).isEmpty();%0A    %7D%0A%0A    @Test%0A    public void localeNotIncluded() throws Exception %7B%0A        assertThat(%0A                FilterUtil.isIncludeLocale(ALL_LOCALES,%0A                        new HLocale(LocaleId.EN), null)).isFalse();%0A    %7D%0A%7D%0A

Add unit tests to satisfy coverage requirements.