@Test public void getProxies() { List<Proxy> proxies = Lists.newArrayList(new Proxy()); when(aclServiceDao.getProxies()).thenReturn(proxies); final List<Proxy> list = subject.getProxies(); assertThat(list, is(proxies)); }