@Test
public void createTableWithoutNameTest() throws ExecutionException, UnsupportedException {

    TableMetadata tableMetadata = mock(TableMetadata.class);
    when(tableMetadata.getName()).thenReturn(null);
    try {
        mongoMetadataEngine.createTable(tableMetadata, connection);
        fail("the table name is necessary");
    } catch (ExecutionException e) {
    }
    verify(tableMetadata, times(1)).getName();
}