### Question:
Cycle3Dataset implements Serializable { public static Cycle3Dataset createFromData(String attributeKey, String userInputData) { Map<String, String> attributes = new HashMap<>(); attributes.put(attributeKey, userInputData); return new Cycle3Dataset(attributes); } @SuppressWarnings("unused")//Needed by JAXB private  Cycle3Dataset();  Cycle3Dataset(Map<String, String> attributes); Map<String, String> getAttributes(); static Cycle3Dataset createFromData(String attributeKey, String userInputData); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void createFromData() throws Exception { Cycle3Dataset cycle3Dataset = Cycle3Dataset.createFromData(DEFAULT_ATTRIBUTE, DEFAULT_ATTRIBUTE_VALUE); assertThat(cycle3Dataset.getAttributes()).isEqualTo(map); }