### Question:
DebugLine implements Sc2ApiSerializable<Debug.DebugLine> { public static DebugLineSyntax line() { return new Builder(); } private  DebugLine(Builder builder); static DebugLineSyntax line(); @Override Debug.DebugLine toSc2Api(); Color getColor(); Line getLine(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void throwsExceptionWhenColorIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(line().of(P0, P1).withColor(nothing())).build()) .withMessage("color is required"); }
@Test void throwsExceptionWhenLineIsNotSet() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> fullAccessTo(line()).withColor(SAMPLE_COLOR).build()) .withMessage("line is required"); }