}
private static List<FieldEntry> mockFields(String className, String... fieldNames) {
List<FieldEntry> entries = Lists.newArrayList();
for (String fieldName : fieldNames) {
FieldEntry entry = mock(FieldEntry.class);
when(entry.getClassName()).thenReturn(className);
when(entry.getFieldName()).thenReturn(fieldName);
entries.add(entry);
}
return entries;
}