}
@Test
public void testGetCurrentAccount() {
final String currentUsername = WindowsAccountImpl.getCurrentUsername();
final IWindowsAccount account = new WindowsAccountImpl(currentUsername);
Assertions.assertThat(account.getName().length()).isGreaterThan(0);
WindowsAccountTests.LOGGER.info("Name: {}", account.getName());
Assertions.assertThat(account.getDomain().length()).isGreaterThan(0);
WindowsAccountTests.LOGGER.info("Domain: {}", account.getDomain());
Assertions.assertThat(account.getFqn().length()).isGreaterThan(0);
WindowsAccountTests.LOGGER.info("Fqn: {}", account.getFqn());
Assertions.assertThat(account.getSidString().length()).isGreaterThan(0);
WindowsAccountTests.LOGGER.info("Sid: {}", account.getSidString());
// To avoid errors with machine naming being all upper-case, use test in this manner
assertTrue(currentUsername.equalsIgnoreCase(account.getFqn()));
assertTrue(currentUsername.endsWith("\\" + account.getName()));
// To avoid errors with machine naming being all upper-case, use test in this manner
assertTrue(currentUsername.toLowerCase().startsWith(account.getDomain().toLowerCase() + "\\"));
}