DefaultDocumentQueryMapperBuilder implements DocumentQueryMapperBuilder { @Override public <T> DocumentMapperDeleteFrom deleteFrom(Class<T> entityClass) { requireNonNull(entityClass, "entity is required"); ClassMapping mapping = mappings.get().get(entityClass); return new DefaultDocumentMapperDeleteBuilder(mapping, converters.get()); }  @Override DocumentMapperFrom selectFrom(Class<T> entityClass); @Override DocumentMapperDeleteFrom deleteFrom(Class<T> entityClass);  }
@Test public void shouldReturnErrorWhenDeleteEntityClassIsNull() { assertThrows(NullPointerException.class, () -> mapperBuilder.deleteFrom(null)); }
@Test public void shouldReturnDeleteFrom() { DocumentMapperDeleteFrom deleteFrom = mapperBuilder.deleteFrom(Person.class); assertNotNull(deleteFrom); }