@Test(expected = ConflictException.class)
public void triesToCreateDuplicateSecret() throws Exception {

  DataAccessException exception = new DataAccessException("");
  ImmutableMap<String,String> emptyMap = ImmutableMap.of();
  doThrow(exception).when(secretBuilder).create();
  CreateSecretRequest req = new CreateSecretRequest("name", "desc", "content", emptyMap, 0);
  resource.createSecret(automation, req);
}