@Test
public void simpleStandAloneEmailAddress() {

    final String input = "test@example.com";
    final Collection<EmailAddressToken> expected = ImmutableList.of(
            new EmailAddressToken(
                    0,
                    15,
                    EmailAddress.builder().email("test@example.com").build()
            )
    );
    final Collection<EmailAddressToken> actual = EmailAddressTokenizer.tokenize(input);
    Assert.assertArrayEquals(
            expected.toArray(new EmailAddressToken[0]),
            actual.toArray(new EmailAddressToken[0])
    );
}