//-------------------------------------------------------------------------
@Test
public void testAddSecurity() {
final ManageableSecurity target = new ManageableSecurity(null, "Name", "Type", ExternalIdBundle.of("C", "D"));
final SecurityDocument request = new SecurityDocument(target);
final SecurityDocument result = new SecurityDocument(target);
result.setUniqueId(UID);
when(_underlying.add(same(request))).thenReturn(result);
Response test = _resource.add(_uriInfo, request);
assertEquals(Status.CREATED.getStatusCode(), test.getStatus());
assertSame(result, test.getEntity());