private static void assertSaveMethodPresent(Class<?> type, boolean present) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(present));
    assertThat(methods.getSaveMethod(), is(present ? notNullValue() : nullValue()));
  }
  private static void assertSaveMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(method != null));
    assertThat(methods.getSaveMethod(), is(method));
  }