StreamMetadataService { public byte[] getSnapshot() { return siddhiManager.snapshot(); } StreamMetadataService(SiddhiManager siddhiManager); int getAttributePosition(String streamName, String columnName); Attribute getAttribute(String streamName, int columnOrder); byte[] getSnapshot(); void setSnapshot(byte[] snapshot);  }
@Test public void testGetSnapshot() throws Exception { byte[] snapshot= metadataService.getSnapshot(); assertTrue("Expected true value not found", snapshot.length > 0); }