### Question:
EventServiceImpl implements EventService { @Override public Event createPlanetColonizedEvent(UUID playerId, UUID planetId) { Preconditions.checkNotNull(playerId, "playerId"); Preconditions.checkNotNull(planetId, "planetId"); LOGGER.debug("Creating planet colonized event for player {} on planet {}", playerId, planetId); return createSimpleEvent(playerId, planetId, EventType.PLANET_COLONIZED); } @Inject  EventServiceImpl(EventDAO eventDAO, UUIDFactory uuidFactory, RoundService roundService); @Override List<EventWithPlanet> findSinceMax(UUID playerId, long round, int max); @Override List<EventWithPlanet> findSince(UUID playerId, long round); @Override Event createBuildingCompletedEvent(UUID playerId, UUID planetId); @Override void createFightHappenedEvent(UUID attackerId, UUID defenderId, UUID planetId, UUID fightId); @Override void createFlightDetectedEvent(UUID attackerId, UUID defenderId, UUID planetId, UUID flightId, UUID detectedFlightId); @Override Event createTransportArrivedEvent(UUID playerId, UUID planetId); @Override Event createPlanetColonizedEvent(UUID playerId, UUID planetId); @Override Event createShipCompletedEvent(UUID playerId, UUID planetId); @Override Event createFlightReturnedEvent(UUID playerId, UUID planetId); @Override Event createTransferArrivedEvent(UUID playerId, UUID planetId); @Override Event createResearchCompletedEvent(UUID playerId, UUID planetId);  }### Answer:
@Test public void testCreatePlanetColonizedEvent() throws Exception { UUID id = UUID.randomUUID(); when(uuidFactory.create()).thenReturn(id); sut.createPlanetColonizedEvent(Data.Player1.PLAYER.getId(), Data.Player1.Planet1.PLANET.getId()); verify(eventDAO).insert(new Event(id, Data.Player1.PLAYER.getId(), Data.Player1.Planet1.PLANET.getId(), EventType.PLANET_COLONIZED, 1, Optional.empty())); }