@Test
void authenticate_missingUsername() {

    String password = "some-password";
    VaultResponse vaultResponse = mock(VaultResponse.class);
    Map<String, Object> data = new HashMap<>();
    data.put("password", password);
    when(vaultResponse.getData()).thenReturn(data);
    when(vaultTemplate.read(anyString())).thenReturn(vaultResponse);
    Properties props = new Properties();
    props.setProperty("security-password",password);
    Throwable throwable = catchThrowable(() -> vaultSecurityManager.authenticate(props));
    assertThat(throwable).isInstanceOf(IllegalArgumentException.class);
}