### Question:
DefaultSelectorDocument implements SelectorDocument { protected List<EntityBody> getEmbeddedEntities(List<EntityBody> previousEntities, Type currentType) { List<EntityBody> embeddedBodyList = new ArrayList<EntityBody>(); String currType = StringUtils.lowercaseFirstLetter(currentType.getName()); for (EntityBody body : previousEntities) { if (body.containsKey(currType)) { embeddedBodyList.addAll((Collection<? extends EntityBody>) body.get(currType)); } } return embeddedBodyList; }  @Override List<EntityBody> aggregate(SelectorQuery selectorQuery, final NeutralQuery constraint); List<EntityBody> getEntitySubList(List<EntityBody> list, String field, String value); static final int EMBEDDED_DOCUMENT_LIMIT; }### Answer:
@Test public void testGetEmbeddedEntities() { ClassType classType = mock(ClassType.class); when(classType.getName()).thenReturn("StudentSectionAssociation"); List<EntityBody> embeddedEntities = defaultSelectorDocument.getEmbeddedEntities(createEmbeddedEntity(), classType); assertEquals(embeddedEntities.size(), 1); }