@Test
public void testCreateBadgeClassFailure() {

  PowerMockito.when(mockBadgingService.createBadgeClass(actorMessage))
      .thenThrow(resourceNotFoundException);
  actorMessage.setOperation(BadgingActorOperations.CREATE_BADGE_CLASS.getValue());
  subject.tell(actorMessage, probe.getRef());
  ProjectCommonException exception =
      probe.expectMsgClass(ACTOR_MAX_WAIT_DURATION, ProjectCommonException.class);
  Assert.assertTrue(null != exception);
}