@Test
public void shouldReturnErrorWhenSaveSubDocument() {

    DocumentEntity entity = getEntity();
    entity.add(Document.of("phones", Document.of("mobile", "1231231")));
    Assertions.assertThrows(SolrException.class, () -> entityManager.insert(entity));
}