@Test
public void getSnapshot() {

  // Arrange
  SnapshotOuterClass.Snapshot protocolBufferSnapshot = SnapshotOuterClass.Snapshot.newBuilder()
    .addImages(Image.getDefaultInstance())
    .setLogicalName("My Snapshot")
    .build();
  Path directory = myFileSystem.getPath("");
  // Act
  Object snapshot = myTask.getSnapshot(protocolBufferSnapshot, directory);
  // Assert
  assertEquals(new Snapshot(directory, "My Snapshot"), snapshot);
}