/** @see DATAREST-217 */
  @Test
  public void defaultsSupportedHttpMethodsForItemResource() {

    assertThat(
        information.getSupportedMethods(ResourceType.ITEM), hasItems(GET, PUT, PATCH, DELETE));
    assertThat(information.getSupportedMethods(ResourceType.ITEM), not(hasItems(POST)));

    assertThat(information.getSupportedMethods(COLLECTION), hasItems(GET, POST));
    assertThat(information.getSupportedMethods(COLLECTION), not(hasItems(PUT, PATCH, DELETE)));
  }
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportPutOnItemResourceIfSaveIsNotExported() {

    when(invoker.exposesSave()).thenReturn(false);
    assertThat(information.supports(POST, ITEM), is(false));
  }
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportDeleteOnItemResourceIfDeleteIsNotExported() {

    when(invoker.exposesDelete()).thenReturn(false);
    assertThat(information.supports(DELETE, ITEM), is(false));
  }
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportGetOnItemResourceIfFindOneIsNotExported() {

    when(invoker.exposesFindOne()).thenReturn(false);
    assertThat(information.supports(GET, ITEM), is(false));
  }