### Question:
InstallStatusEvent { public void setArtifactName(String name) { Utilities.checkNull("setArtifactName", "name", name); _artifactName = name; } InstallStatusEvent(InstallEventType type); String getArtifactName(); void setArtifactName(String name); InstallEventType getType(); void setType(InstallEventType type); void setNumFilesToUpdate(int numFilesToUpdate); int getNumFilesToUpdate();  }### Answer:
@Test public final void testSetArtifactName() { classUnderTest = new InstallStatusEvent(BACKUP_COMPLETE); String name = "test.jar"; String newname = "test2.jar"; classUnderTest.setArtifactName(name); assertEquals(name, classUnderTest.getArtifactName()); classUnderTest.setArtifactName(newname); assertEquals(newname, classUnderTest.getArtifactName()); }
@Test (expected = IllegalArgumentException.class) public final void testSetArtifactName_nullarg() { classUnderTest = new InstallStatusEvent(BACKUP_COMPLETE); classUnderTest.setArtifactName(null); }