void () { assertEquals("", DvcsUtil.joinWithAnd(Arrays.asList(""), 3)); assertEquals("1", DvcsUtil.joinWithAnd(Arrays.asList("1"), 3)); assertEquals("1 and 2", DvcsUtil.joinWithAnd(Arrays.asList("1", "2"), 3)); assertEquals("1, 2 and 3", DvcsUtil.joinWithAnd(Arrays.asList("1", "2", "3"), 3)); assertEquals("1, 2 and 2 others", DvcsUtil.joinWithAnd(Arrays.asList("1", "2", "3", "4"), 3)); }