### Question:
Snapshot { public String getSnapshotName() { return String.format("%d_%s", nr, date.toString(ISODateTimeFormat.dateTime())); } Snapshot();  Snapshot(int nr, DateTime date, Stream stream); Path getSnapshotDir(); String getSnapshotName(); @Override String toString(); static Snapshot parse(Stream stream, String name); static final Comparator<Snapshot> COMPARATOR_NR; public int nr; public DateTime date; public Stream stream; public UUID senderStreamId; }### Answer:
@Test public void testGetSnapshotName() throws Exception { Snapshot s = new Snapshot(); s.nr = 4; s.date = date; assertEquals(name, s.getSnapshotName()); }