### Question:
AuthsCommand { public static Attribute getAuthsAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "auths", username)); List<String> auths = null; if (!out.endsWith("No such user") && !out.contains("No auth") && !out.endsWith("not found")) { auths = Arrays.asList(out.split(",")); } else if (out.contains("No auth")) { auths = Collections.emptyList(); } else { throw new RuntimeException("'auths' command for user '" + username + "' failed. Buffer: <" + out + ">"); } return AttributeBuilder.build(NativeAttribute.AUTHS.getName(), auths); } private  AuthsCommand(); static Attribute getAuthsAttributeFor(String username, SolarisConnection conn);  }### Answer:
@Test public void test() { Attribute result = AuthsCommand.getAuthsAttributeFor("root", getConnection()); AssertJUnit.assertNotNull(result); AssertJUnit.assertTrue(result.getValue().size() > 0); AssertJUnit.assertNotNull(result.getValue().get(0)); AssertJUnit.assertEquals(NativeAttribute.AUTHS.getName(), result.getName()); }