### Question:
LabelDescriptor { public static LabelDescriptor create(String name, String description) { checkArgument(!name.isEmpty(), "Name must not be empty"); checkArgument(!description.isEmpty(), "Description must not be empty"); checkArgument( ALLOWED_LABEL_PATTERN.matches(name), "Label name must match the regex %s", ALLOWED_LABEL_PATTERN); return new AutoValue_LabelDescriptor(name, description); } LabelDescriptor(); static LabelDescriptor create(String name, String description); abstract String name(); abstract String description();  }### Answer:
@Test public void testCreate_invalidLabel_throwsException() { IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, () -> LabelDescriptor.create("@", "description")); assertThat(thrown).hasMessageThat().contains("Label name must match the regex"); }
@Test public void testCreate_blankNameField_throwsException() { IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, () -> LabelDescriptor.create("", "description")); assertThat(thrown).hasMessageThat().contains("Name must not be empty"); }
@Test public void testCreate_blankDescriptionField_throwsException() { IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> LabelDescriptor.create("name", "")); assertThat(thrown).hasMessageThat().contains("Description must not be empty"); }