void () { assertEquals(HgUtil.parseUserNameAndEmail("Vasya Pavlovich Pupkin <asdasd@localhost>"), new Couple<>("Vasya Pavlovich Pupkin", "asdasd@localhost")); assertEquals(HgUtil.parseUserNameAndEmail("Vasya Pavlovich Pupkin"), new Couple<>("Vasya Pavlovich Pupkin", "")); assertEquals(HgUtil.parseUserNameAndEmail("vasya.pupkin@localhost.com"), new Couple<>("", "vasya.pupkin@localhost.com")); assertEquals(HgUtil.parseUserNameAndEmail("<vasya.pupkin@localhost.com>"), new Couple<>("", "vasya.pupkin@localhost.com")); assertEquals(HgUtil.parseUserNameAndEmail("<vasya@localhost.com>"), new Couple<>("", "vasya@localhost.com")); assertEquals(HgUtil.parseUserNameAndEmail("Vasya <vas@localhost.com>"), new Couple<>("Vasya", "vas@localhost.com")); }