@Test
public void rollbackSuccess() {

  Secret secret1 = new Secret(1, "name1", "desc", () -> "secret",
      "checksum", NOW, "user", NOW, "user", emptyMap, null,
      null, 1136214245, 125L, NOW, "user");
  when(secretController.getSecretByName("name1")).thenReturn(Optional.of(secret1));
  Response response = resource.resetSecretVersion(user, "name1", new LongParam("125"));
  assertThat(response.getStatus()).isEqualTo(HttpStatus.SC_CREATED);
}