ExpirationAction implements Serializable { public String toXmlString() { switch (this.name) { case "INVALIDATE": return "invalidate"; case "DESTROY": return "destroy"; case "LOCAL_DESTROY": return "local-destroy"; case "LOCAL_INVALIDATE": return "local-invalidate"; default: return null; } } private  ExpirationAction(String name); boolean isInvalidate(); boolean isLocalInvalidate(); boolean isDestroy(); boolean isLocalDestroy(); boolean isLocal(); boolean isDistributed(); @Override String toString(); String toXmlString(); static ExpirationAction fromXmlString(String xmlValue); static ExpirationAction fromOrdinal(int ordinal); @Immutable
  static final ExpirationAction INVALIDATE; @Immutable
  static final ExpirationAction LOCAL_INVALIDATE; @Immutable
  static final ExpirationAction DESTROY; @Immutable
  static final ExpirationAction LOCAL_DESTROY; final int ordinal; }
@Test public void toXmlString() throws Exception { assertThat(ExpirationAction.LOCAL_DESTROY.toXmlString()).isEqualTo("local-destroy"); assertThat(ExpirationAction.DESTROY.toXmlString()).isEqualTo("destroy"); assertThat(ExpirationAction.LOCAL_INVALIDATE.toXmlString()).isEqualTo("local-invalidate"); assertThat(ExpirationAction.INVALIDATE.toXmlString()).isEqualTo("invalidate"); }