### Question:
SnapshotService { public Snapshot getById(long id) { return snapshotBiz.get(id); }  List<Snapshot> getByPath(String path, String cluster, int offset, int limit); Snapshot getById(long id);  }### Answer:
@Test public void testGetById() throws Exception { Snapshot snapshot = snapshotService.getById(1); Assert.assertNotNull(snapshot); }