### Question:
User implements Serializable { public String[] getRoles() { return copyArray(_roles); } User(String name, String[] roles, String token);  User(String name, String[] roles, String token, boolean isWorkFlowAdmin); String getName(); String[] getRoles(); String getToken(); boolean hasRole(String role); boolean isWorkFlowAdmin(); boolean hasOneRoleOf(String[] roles);  }### Answer:
@Test public void testGetRoles() throws Exception { String[] roles = user.getRoles(); assertEquals(roles[0], "test/role1"); }