### Question:
RasdManagement extends DefaultEntityBase { public void setSequence(final Integer sequence) { if (sequence < FIRST_ATTACHMENT_SEQUENCE) { throw new IllegalArgumentException("Attachment order should be greater or equal to " + FIRST_ATTACHMENT_SEQUENCE); } this.sequence = sequence; } protected  RasdManagement(); protected  RasdManagement(final String idResourceType); @Override Integer getId(); void setId(final Integer id); @Required(value = VIRTUAL_APPLIANCE_REQUIRED) VirtualAppliance getVirtualAppliance(); void setVirtualAppliance(final VirtualAppliance virtualAppliance); @Required(value = VIRTUAL_DATACENTER_REQUIRED) VirtualDatacenter getVirtualDatacenter(); void setVirtualDatacenter(final VirtualDatacenter virtualDatacenter); void setVirtualMachine(final VirtualMachine virtualMachine); @Required(value = VIRTUAL_MACHINE_REQUIRED) VirtualMachine getVirtualMachine(); @Required(value = ID_RESOURCE_TYPE_REQUIRED) @Length(min = ID_RESOURCE_TYPE_LENGTH_MIN, max = ID_RESOURCE_TYPE_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = ID_RESOURCE_TYPE_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) String getIdResourceType(); void setIdResourceType(final String idResourceType); @Required(value = RASD_REQUIRED) Rasd getRasd(); void setRasd(final Rasd rasd); Integer getTemporal(); void setTemporal(final Integer temporal); Integer getSequence(); void setSequence(final Integer sequence); String getInstanceId(); String getDescription(); void setDescription(final String description); void attach(final int sequence, final VirtualMachine vm); void attach(final int sequence, final VirtualMachine vm, final VirtualAppliance vapp); void detach(); boolean isAttached(); static final int FIRST_ATTACHMENT_SEQUENCE; static final String TABLE_NAME; final static String VIRTUAL_APPLIANCE_PROPERTY; final static String VIRTUAL_DATACENTER_PROPERTY; final static String VIRTUAL_MACHINE_PROPERTY; final static String ID_RESOURCE_TYPE_PROPERTY; final static String RASD_PROPERTY; final static String TEMPORAL_PROPERTY; final static String SEQUENCE_PROPERTY; }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testInvalidGenerationValues() { RasdManagement rasdm = createUniqueEntity(); rasdm.setSequence(FIRST_ATTACHMENT_SEQUENCE - 1); }