### Question:
ArtifactXmlBean implements Serializable { public String getType() { return type; } ArtifactXmlBean();  ArtifactXmlBean(String name, String type, String version, long size,
            long checksum); String getName(); void setName(String name); String getType(); void setType(String type); String getVersion(); void setVersion(String version); long getSize(); void setSize(long size); long getChecksum(); void setChecksum(long checksum); boolean isInstalled(); void setInstalled(boolean installed); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testGetType() throws Exception { classUnderTest.setType("aTestString"); assertEquals("aTestString", classUnderTest.getType()); }