@Test
public void testUserNameIsAnEmail() throws Exception {

  operation.setConfiguration(EmailWorkflowOperationHandler.TO_PROPERTY, USER_NAME_EMAIL);
  operation.setConfiguration(EmailWorkflowOperationHandler.CC_PROPERTY, USER_NAME_EMAIL);
  operation.setConfiguration(EmailWorkflowOperationHandler.BCC_PROPERTY, USER_NAME_EMAIL);
  operation.setConfiguration(EmailWorkflowOperationHandler.SUBJECT_PROPERTY, DEFAULT_SUBJECT);
  operation.setConfiguration(EmailWorkflowOperationHandler.BODY_PROPERTY,
          "This is the media package: ${mediaPackage.identifier}");
  WorkflowOperationResult result = operationHandler.start(workflowInstance, null);
  Assert.assertEquals(Action.CONTINUE, result.getAction());
  Assert.assertEquals(DEFAULT_TO, capturedTo.getValue());
  Assert.assertEquals(DEFAULT_TO, capturedCC.getValue());
  Assert.assertEquals(DEFAULT_TO, capturedBCC.getValue());
  Assert.assertEquals(DEFAULT_SUBJECT, capturedSubject.getValue());
  Assert.assertEquals("This is the media package: 3e7bb56d-2fcc-4efe-9f0e-d6e56422f557", capturedBody.getValue());
}