### Question:
SessionModelTool { public SessionState buildFileModel(final SessionModel model) { SessionState state = new SessionState(); List<ParticipantState> participants = model.getParticipants().stream() .filter(p -> !p.isPlaceholder()) .map(this::buildParticipantState) .collect(toList()); state.setParticipants(participants); state.setDrawName(model.getDrawName()); state.setPassword(model.getPassword()); return state; } @Inject  SessionModelTool(final I18nManager i18nManager); SessionModel buildGuiModel(final SessionState state, final Path file); SessionModel buildGuiModel(final List<ParticipantState> participants); SessionState buildFileModel(final SessionModel model);  }### Answer:
@Test public void testBuildFileModel() { List<ParticipantModel> participants = List.of(albert, beryl, carla, david, edith, fred, gina, harry, iris, john, kate); SessionModel input = new SessionModel(i18nManager, participants); input.setDrawName(DRAW_NAME_1); input.setPassword(PASSWORD); SessionState result = target.buildFileModel(input); assertEquals(buildFullState(), result); }