CircularArrayAccessLogKeeper { public List<String> getUris() { final List<String> uriList = new ArrayList<>(); synchronized (monitor) { uris.iterator().forEachRemaining(uri -> uriList.add(uri)); } return uriList; } CircularArrayAccessLogKeeper(); List<String> getUris(); void addUri(String uri); static final int SIZE; }
@Test public void testEmpty() { assertThat(circularArrayAccessLogKeeper.getUris().size(), is(0)); }