### Question:
Id { public Id expectObjectId() throws JsonResourceException { if (StringUtils.isBlank(localId)) { JsonResourceException ex = new JsonResourceException(400, "This id instance does not qualified to identify a single unique object"); TRACE.error("Unqualified id: systemName={}, objectType={}, localId={}", new Object[]{systemName, objectType, localId}, ex); throw ex; } return this; } Id(String systemName, String objectType);  Id(String systemName, String objectType, String localId); @SuppressWarnings("fallthrough")  Id(String id); String getLocalId(); String getObjectType(); String getSystemName(); Id expectObjectId(); Id resolveLocalId(String uid); URI getId(); URI getQualifiedId(); @Override String toString(); static String escapeUid(String uid); static String unescapeUid(String uid); static final String SYSTEM_BASE; static final String CHARACTER_ENCODING_UTF_8; }### Answer:
@Test(expectedExceptions = JsonResourceException.class) public void testExpectObjectId() throws Exception { Id id = new Id("/system/xml/"); id.expectObjectId(); }