@Test
public void testObfuscateEmailAddress() throws Exception {

	Assert.assertEquals(
		"*@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress("t@liferay.com"));
	Assert.assertEquals(
		"**@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress("te@liferay.com"));
	Assert.assertEquals(
		"***@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress("tes@liferay.com"));
	Assert.assertEquals(
		"t***@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress(
			"test@liferay.com"));
	Assert.assertEquals(
		"t***1@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress(
			"test1@liferay.com"));
	Assert.assertEquals(
		"te***1@liferay.com",
		EmailOTPBrowserMFAChecker.obfuscateEmailAddress(
			"test11@liferay.com"));
}