@Test
public void shouldSaveSubDocument2() {

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