### Question:
ElasticsearchQueryUtils { protected static FetchSourceContext getProjection(Schema schema) { List<String> includedFields = new ArrayList<>(); for (Field field : schema.getFields()) { includedFields.add(field.getName()); } logger.info("Included fields: " + includedFields); return new FetchSourceContext(true, Strings.toStringArray(includedFields), Strings.EMPTY_ARRAY); } private  ElasticsearchQueryUtils();   }### Answer:
@Test public void getProjectionTest() { logger.info("getProjectionTest - enter"); List<String> expectedProjection = new ArrayList<>(); mapping.getFields().forEach(field -> expectedProjection.add(field.getName())); FetchSourceContext context = ElasticsearchQueryUtils.getProjection(mapping); List<String> actualProjection = ImmutableList.copyOf(context.includes()); logger.info("Projections - Expected: {}, Actual: {}", expectedProjection, actualProjection); assertEquals("Projections do not match", expectedProjection, actualProjection); logger.info("getProjectionTest - exit"); }