@Test
public void shouldCreateClassMappingWithEmbeddedClass() {

    ClassMapping classMapping = classConverter.create(Director.class);
    assertEquals("Director", classMapping.getName());
    assertEquals(Director.class, classMapping.getClassInstance());
    assertEquals(5, classMapping.getFields().size());
    assertThat(classMapping.getFieldsName(), containsInAnyOrder("_id", "name", "age", "phones", "movie"));
}