//WHEN
eventService.createStackEvent(1L, "STACK_CREATED", "Stack created");
//THEN
BDDMockito.verify(eventRepository).save(captor.capture());
CloudbreakEvent event = captor.getValue();
Assert.assertNotNull(event);
Assert.assertEquals("The user name is not the expected", "John", event.getOwner());
Assert.assertEquals("The cloudprovider is not the expected", CloudPlatform.AZURE.name(), event.getCloud());
}