}
@Test
public void storeRuleMege() throws Exception {
setupStorage();
final TreeRule rule = new TreeRule(1);
rule.setLevel(2);
rule.setOrder(1);
rule.setNotes("Just some notes");
assertTrue(rule.syncToStorage(storage.getTSDB(), false).joinUninterruptibly());
assertEquals(2, storage.numColumns(new byte[] { 0, 1 }));
final TreeRule stored = JSON.parseToObject(
storage.getColumn(new byte[] { 0, 1 },
"tree_rule:2:1".getBytes(MockBase.ASCII())), TreeRule.class);
assertEquals("Host owner", stored.getDescription());
assertEquals("Just some notes", stored.getNotes());
}