@Test
public void testPostingWithoutRequiredParams() {
// Check required params
Context context = new Context(player1);
boolean result = messageService.playerPostAction(
context, campaignId, char1Id,
scene.getKey().getId(), null,
MessageAction.SPEECH, "a speech");
assertFalse(result);
assertTrue(context.hasError(Errors.REQUIRED));
context = new Context(player1);
result = messageService.playerPostAction(
context, campaignId, char1Id,
scene.getKey().getId(), scene.getTimestamp(),
null, "a speech");
assertFalse(result);
assertTrue(context.hasError(Errors.REQUIRED));
context = new Context(player1);
result = messageService.playerPostAction(
context, campaignId, char1Id,
scene.getKey().getId(), scene.getTimestamp(),
MessageAction.SPEECH, null);
assertFalse(result);
assertTrue(context.hasError(Errors.REQUIRED));
}