### Question:
SolarisConnector implements PoolableConnector, AuthenticateOp, SchemaOp, CreateOp,
        DeleteOp, UpdateOp, SearchOp<Node>, TestOp, ScriptOnResourceOp, ResolveUsernameOp { public Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options) { return new SolarisCreate(this).create(objectClass, attrs, options); }  void init(Configuration cfg); void checkAlive(); void dispose(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options); void delete(ObjectClass objectClass, Uid uid, OperationOptions options); Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes,
            OperationOptions options); void executeQuery(ObjectClass objectClass, Node query, ResultsHandler handler,
            OperationOptions options); FilterTranslator<Node> createFilterTranslator(ObjectClass objectClass,
            OperationOptions options); Schema schema(); void test(); SolarisConnection getConnection(); Configuration getConfiguration(); Object runScriptOnResource(ScriptContext request, OperationOptions options); Uid resolveUsername(ObjectClass objectClass, String username, OperationOptions options);  }### Answer:
@Test public void testDuplicateCreate() { Set<Attribute> attrs = CollectionUtil.newSet(AttributeBuilder.build(Name.NAME, getUsername()), AttributeBuilder.buildPassword("sample_1".toCharArray())); try { getFacade().create(ObjectClass.ACCOUNT, attrs, null); fail("expected exception on create of user with non-unique username (==uid)"); } catch (Exception ex) { } }