@@ -0,0 +1,1104 @@
+package com.google.sps.data;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A%0A/*%0A * Ensure that the AnnotatedField.create() method throws the correct errors when%0A * given illegal input.  Test that the getField() method works correctly.%0A */%0A@RunWith(JUnit4.class)%0Apublic final class AnnotatedFieldTest %7B%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void invalidFieldName() %7B%0A    AnnotatedField.create(%22serialNumber%22);%0A  %7D%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void nullFieldName() %7B%0A    AnnotatedField.create(null);%0A  %7D%0A%0A  @Test%0A  public void properFieldName() %7B%0A    AnnotatedField field = AnnotatedField.create(%22annotatedLocation%22);%0A%0A    Assert.assertEquals(AnnotatedField.LOCATION, field);%0A  %7D%0A%0A  @Test%0A  public void getsCorrectField() %7B%0A    AnnotatedField field = AnnotatedField.create(%22annotatedUser%22);%0A%0A    ChromeOSDevice device = new ChromeOSDevice(%22assetId%22, %22location%22, %22user%22, %22deviceId%22, %22serialNumber%22);%0A%0A    Assert.assertEquals(device.getAnnotatedUser(), field.getField(device));%0A  %7D%0A%0A%7D%0A

Add test coverage for some issues fixed in the AnnotatedField enum