assertThat(summary, is("List<String>(size=3)"));
</BUG>
}
@Test
public void summarizeObjectSet() {
<BUG>Set<Object> set = Sets.newHashSet(new Object(), new Object());
String summary = ObfuscationUtil.summarizeCollection(set, "Set", "Object");

assertThat(summary, is("Set<Object>(size=2)"));
</BUG>
}

import static org.junit.Assert.*;
public class ObfuscationUtilTest {
@Test
public void summarizeStringList() {
List<String> strings = Arrays.asList("one", "two", "three");
String summary = ObfuscationUtil.summarizeCollection(strings, "list", "string");
assertThat(summary, is("list<string>(size=3)"));
}
@Test
public void summarizeObjectSet() {
Set<Long> set = Sets.newHashSet(3L, 4L);
String summary = ObfuscationUtil.summarizeCollection(set, "set", "i64");
assertThat(summary, is("set<i64>(size=2)"));
}
