@nacx @abayer @andrewgaul 

I've rebased commit based on @demobox comments.

FYI the previous code being commented on looked more like:

    LoginCredentials toTest = LoginCredentials.builder().user("myuser").build();
    String str = toTest.toString();
    assertTrue(str.contains("myuser"), "str="+toTest);