@Test
void testToString() {

    Assertions.assertNotNull(new Expectations() {
        {
            WindowsPrincipalTest.this.windowsIdentity.getFqn();
            this.result = WindowsPrincipalTest.TEST_FQN;
            WindowsPrincipalTest.this.windowsIdentity.getGroups();
            this.result = new IWindowsAccount[0];
        }
    });
    final WindowsPrincipal principal = new WindowsPrincipal(this.windowsIdentity);
    Assertions.assertEquals(WindowsPrincipalTest.TEST_FQN, principal.getName());
    Assertions.assertEquals(WindowsPrincipalTest.TEST_FQN, principal.toString());
}