@Test
public void builderCreatesIndex()
{
RawIndex.Name builder = new RawIndex.Name("index_name", IndexType.INT);
RawIndex index = builder.createIndex();
assertEquals(index.getName(), "index_name");
assertEquals(index.getType(), IndexType.INT);
assertEquals(index.getFullname(), "index_name" + IndexType.INT.suffix());
builder = new RawIndex.Name("index_name", IndexType.BIN);
index = builder.createIndex();
assertEquals(index.getName(), "index_name");
assertEquals(index.getType(), IndexType.BIN);
assertEquals(index.getFullname(), "index_name" + IndexType.BIN.suffix());
}