### Question:
ArtifactVersionDecider { public static boolean isSnapshot(String version) { return version.endsWith("-SNAPSHOT"); }  static boolean isSnapshot(String version);  }### Answer:
@Test public void testIsSnapshotReturnsTrueWhenVersionIsEndingWithSnapshot() { boolean result = ArtifactVersionDecider.isSnapshot("1.0.0-SNAPSHOT"); assertTrue(result); }
@Test public void testIsSnapshotReturnsFalseWhenVersionIsNotEndingWithSnapshot() { boolean result = ArtifactVersionDecider.isSnapshot("1.0.0"); assertFalse(result); }
@Test public void testIsSnapshotReturnsFalseWhenVersionIsCompletelyRandom() { boolean result = ArtifactVersionDecider.isSnapshot("something-else-that-is-not-a-version"); assertFalse(result); }