private static void testTable() throws FileNotFoundException, ExecutionException, UnsupportedEncodingException {
        new File("db_test").delete();
        BufferManager bufferManager = new BufferManager("db_test");
        Collection<Attribute> attributes = new ArrayList<>();
        attributes.add(new Attribute("Test int attr", Attribute.IntegerType.getInstance()));
        attributes.add(new Attribute("Test varchar attr", new Attribute.VarcharType(32)));
        Table table = new Table(bufferManager, BufferManager.METAINF_FIRST_PAGE, attributes, "name", new HashMap<Attribute, BxTree>());
        Object[] record = new Object[2];
        record[0] = 123454;
        record[1] = "value";
        for (int i = 0; i < COUNT; i ++) {
            table.insertRecord(record);
        }
        int i = 0;
        for(Record rec: table) {
            Map<SecondLevelId, Object> recAtributes = rec.getAttributes();
            if ((Integer)recAtributes.get(new SecondLevelId("name", "Test int attr")) != 123454) {
				throw new RuntimeException();
			}
			if (!"value".equals(recAtributes.get(new SecondLevelId("name", "Test varchar attr")))) {
				throw new RuntimeException();
			}
            i++;
        }
        if(i != COUNT) {
            throw new RuntimeException();
        }
    }