@Test(expected = IDatabaseException.class)
public void testInsertToNotExistingCollection() throws InvalidArgumentException, IDatabaseException, SerializeException, ReadValueException {

    InMemoryDatabase database = new InMemoryDatabase();
    IObject document = new DSObject("{}");
    database.insert(document, "collection_name");
}