ItemObjectModelFactory { public ItemObjectModel newItemObjectModel(final String name, final String value) { final ItemObjectModel model = new ItemObjectModel(); model.setName(name); model.setValue(value); model.setResolver(Resolver.MVEL.name().toLowerCase()); model.setParameters(new ArrayList<>()); return model; }  ItemObjectModel newItemObjectModel(final String name, final String value); ItemObjectModel newItemObjectModel(final String name);  }
@Test public void testNewObjectItemModel() { final ItemObjectModel model = itemObjectModelFactory.newItemObjectModel("Value"); assertEquals("Value", model.getValue()); assertEquals("mvel", model.getResolver()); assertTrue(model.getParameters().isEmpty()); }
@Test public void testNewNamedObjectItemModel() { final ItemObjectModel model = itemObjectModelFactory.newItemObjectModel("Name", "Value"); assertEquals("Name", model.getName()); assertEquals("Value", model.getValue()); assertEquals("mvel", model.getResolver()); assertTrue(model.getParameters().isEmpty()); }