@Test
public void getIndexMappingsWithNonExistIndex() {

  ElasticsearchNodeClient client =
      new ElasticsearchNodeClient(mockClusterService("test"), nodeClient);
  assertThrows(IndexNotFoundException.class, () -> client.getIndexMappings("non_exist_index"));
}