when(
dmo.getProjectModelFields()
).thenReturn(
new HashMap<String, ModelField[]>() {{
put( "Goober", new ModelField[]{
new ModelField(
"gooField",
"Goo",
ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
ModelField.FIELD_ORIGIN.DECLARED,
FieldAccessorsAndMutators.BOTH,
"Goo"
),
new ModelField(
"fooField",
"Foo",
ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
ModelField.FIELD_ORIGIN.DECLARED,
FieldAccessorsAndMutators.BOTH,
"Foo"
),
new ModelField(
"zooField",
"Zoo",
ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
ModelField.FIELD_ORIGIN.DECLARED,
FieldAccessorsAndMutators.BOTH,
"Zoo"
)
} );
put( "Foo", new ModelField[]{
new ModelField(
"barField",
"Bar",
ModelField.FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS,
ModelField.FIELD_ORIGIN.DECLARED,
FieldAccessorsAndMutators.BOTH,