### Question:
RoleInputSource extends LogicalSource { public boolean isRoleDefined() { return role != null && !role.isEmpty(); } RoleInputSource(String role);  RoleInputSource(RoleInput roleInput); boolean isRoleDefined(); String getRole(); ActionSource getActionSource(LogicalSourceContext context); @Override String toString(); @Override boolean equals(Object o);  }### Answer:
@Test public void testUndefinedRoles() { assertFalse(new RoleInputSource((String) null).isRoleDefined()); assertFalse(new RoleInputSource("").isRoleDefined()); }