### Question:
RequestData extends Request { @Override public Sc2Api.Request toSc2Api() { return Sc2Api.Request.newBuilder() .setData(Sc2Api.RequestData.newBuilder() .setAbilityId(ability) .setBuffId(buff) .setEffectId(effect) .setUnitTypeId(unitType) .setUpgradeId(upgrade) .build()) .build(); } private  RequestData(Builder builder); static RequestDataSyntax data(); @Override Sc2Api.Request toSc2Api(); @Override ResponseType responseType(); boolean isAbility(); boolean isUnitType(); boolean isUpgrade(); boolean isBuff(); boolean isEffect(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void serializesDefaultAbilityValueIfNotSet() { Sc2Api.RequestData aSc2ApiRequestData = defaultRequestData().toSc2Api().getData(); assertThat(aSc2ApiRequestData.hasAbilityId()).as("data: ability value is set").isTrue(); assertThat(aSc2ApiRequestData.getAbilityId()).as("data: default ability value").isFalse(); }
@Test void serializesDefaultBuffValueIfNotSet() { Sc2Api.RequestData aSc2ApiRequestData = defaultRequestData().toSc2Api().getData(); assertThat(aSc2ApiRequestData.hasBuffId()).as("data: buff value is set").isTrue(); assertThat(aSc2ApiRequestData.getBuffId()).as("data: default buff value").isFalse(); }
@Test void serializesDefaultEffectValueIfNotSet() { Sc2Api.RequestData aSc2ApiRequestData = defaultRequestData().toSc2Api().getData(); assertThat(aSc2ApiRequestData.hasEffectId()).as("data: effect value is set").isTrue(); assertThat(aSc2ApiRequestData.getEffectId()).as("data: default effect value").isFalse(); }
@Test void serializesDefaultUnitTypeValueIfNotSet() { Sc2Api.RequestData aSc2ApiRequestData = defaultRequestData().toSc2Api().getData(); assertThat(aSc2ApiRequestData.hasUnitTypeId()).as("data: unit type value is set").isTrue(); assertThat(aSc2ApiRequestData.getUnitTypeId()).as("data: default unit type value").isFalse(); }
@Test void serializesDefaultUpgradeValueIfNotSet() { Sc2Api.RequestData aSc2ApiRequestData = defaultRequestData().toSc2Api().getData(); assertThat(aSc2ApiRequestData.hasUpgradeId()).as("data: upgrade value is set").isTrue(); assertThat(aSc2ApiRequestData.getUpgradeId()).as("data: default upgrade value").isFalse(); }