ClearChargingProfileRequest implements Request { @Override public boolean validate() { boolean valid = connectorId == null || connectorId >= 0; valid &= stackLevel == null || stackLevel >= 0; return valid; }  Integer getId(); @XmlElement void setId(Integer id); Integer getConnectorId(); @XmlElement void setConnectorId(Integer connectorId); ChargingProfilePurposeType getChargingProfilePurpose(); @XmlElement void setChargingProfilePurpose(ChargingProfilePurposeType chargingProfilePurpose); Integer getStackLevel(); @XmlElement void setStackLevel(Integer stackLevel); @Override boolean transactionRelated(); @Override boolean validate(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void validate_clearChargingProfileRequestIsEmpty_returnTrue() { boolean isValid = request.validate(); assertThat(isValid, is(true)); }