@Test(expected = IllegalArgumentException.class)
public void testWriteBadTSDB() throws Exception {

  try (TimeSeriesDatabase instance = new TimeSeriesDatabase(new File(FILE_NAME), new byte[]{})) {
    instance.addTSTable("gr1", new byte[]{}, 5, new String[]{"a", "b"}, new byte[][]{});
    instance.addTSTable("gr1", new byte[]{}, 5, new String[]{"a", "b"}, new byte[][]{});
  }
}