### Question:
MapRecord implements MutableRecord { @Override public boolean updateField(String field, List<Value> value) { if (!records.containsKey(field)) { return false; } records.put(field, value); return true; } MapRecord(); @Override List<Value> getValues(String field); @Override MutableRecord makeMutable(); @Override boolean isMutable(); @Override boolean addField(String field, List<Value> values); @Override boolean addValue(String field, Value value); @Override boolean removeField(String field); @Override boolean removeValue(String field, Value value); @Override boolean updateField(String field, List<Value> value); @Override boolean updateValue(String field, Value old_value, Value new_value); @Override boolean hasField(String field); @Override Set<String> getFields();  }### Answer:
@Test public void testUpdateField() { List<Value> val = new ArrayList<Value>(); val.add(new StringValue("bar")); val.add(new StringValue("baz")); val.add(new StringValue("moo")); assertFalse(rec.updateField("test", val)); rec.addField("test", val); assertTrue(rec.updateField("test", val)); List<Value> val2 = rec.getValues("test"); assertEquals(val2.size(), val.size()); for (int i = 0; i < val2.size(); i++) { assertEquals(val2.get(i), val.get(i)); } }