@Test
public void saveTableEmptyName() throws Exception {

    doNothing().when(metadataManager)
            .save(any(Table.class));
    doNothing().when(dataStore)
            .initializeTable(any(Table.class), anyBoolean());
    doNothing().when(queryStore)
            .initializeTable(any(String.class));
    try {
        Table table = new Table();
        table.setName(" ");
        table.setTtl(60);
        tableManager.save(table);
        fail();
    } catch (FoxtrotException e) {
        assertEquals(ErrorCode.INVALID_REQUEST, e.getCode());
    }
}