IndicatorInstance implements Comparable<IndicatorInstance>, Serializable { @JsonIgnore public String getName() { return getClientIndicator().getName(); } IndicatorInstance();  IndicatorInstance(String classname, Integer timeframe1, Integer timeframe2, Integer timeframe3, boolean overlay); @Override boolean equals(Object key); @JsonIgnore String getName(); @JsonIgnore String generateName(String name); @Override int compareTo(IndicatorInstance that); @Override int hashCode(); @Override String toString(); Integer getTimeframe1(); void setTimeframe1(Integer timeframe1); Integer getTimeframe2(); void setTimeframe2(Integer timeframe2); Integer getTimeframe3(); void setTimeframe3(Integer timeframe3); String getClassname(); void setClassname(String classname); boolean isOverlay(); void setOverlay(boolean overlay); IndicatorClientDefinition getClientIndicator();  }
@Test public void testSerializable() throws IOException { IndicatorInstance indicator = new IndicatorInstance("testname", 5, 6, 7, false); byte[] bytes = SerializationUtils.serialize(indicator); IndicatorInstance indicator2 = (IndicatorInstance) SerializationUtils.deserialize(bytes); assertThat(indicator.getName()).isEqualTo(indicator2.getName()); assertThat(indicator).isEqualTo(indicator); }