assertEquals(Operation.TYPE_GROUP_INSERT, txn.getOperations().get(5).getType());
assertEquals("new-database", txn.getOperations().get(5).getDatabaseName());
assertEquals(2, txn.getOperations().get(5).getParams().length);
// test of the aggregate function
byte aggregate = txn.aggregateOperationTypes();
assertTrue(TransactionInternal.containsOperationType(aggregate, Operation.TYPE_CREATE_DB));
assertTrue(TransactionInternal.containsOperationType(aggregate, Operation.TYPE_CREATE_DB));
assertTrue(TransactionInternal.containsOperationType(aggregate, Operation.TYPE_GROUP_INSERT));
assertTrue(TransactionInternal.containsOperationType(aggregate, Operation.TYPE_DELETE_DB));
assertTrue(TransactionInternal.containsOperationType(aggregate, Operation.TYPE_DELETE_DB));