}
private void setRules() {
OfficeIdSpecification idSpecification = new OfficeIdSpecification();
FullOfficeSpecification fullOfficeSpecification = new FullOfficeSpecification();
Message wrongIdMessage = new MessageImpl(OfficeErrorCodes.WRONG_ID, Message.Type.ERROR, "officeId" ,"Wrong office id");
Message fullOfficeMessage = new MessageImpl(OfficeErrorCodes.FULL, Message.Type.ERROR, "employees", "Too many employees");
this.officeSpecification.compose(idSpecification).withMessage(wrongIdMessage, false)
.andNot(fullOfficeSpecification).withMessage(fullOfficeMessage, true);
}