@Test
public void shouldCreateClassMapping() {

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