command.setId("service");
command.setKey("key");
command.setProviderOptions(Lists.newArrayList("spotBid=0.07"));
Provisionr service = mock(Provisionr.class);
Provider provider = newProviderMockWithBuilder();
when(service.getDefaultProvider()).thenReturn(Optional.of(provider));
command.createPoolFromArgumentsAndServiceDefaults(service);
@SuppressWarnings("unchecked")
ArgumentCaptor<Map<String, String>> argument = (ArgumentCaptor<Map<String, String>>) (Object)
ArgumentCaptor.forClass(Map.class);
verify(provider.toBuilder()).options(argument.capture());
assertThat(argument.getValue().containsKey("spotBid")).isTrue();
assertThat(argument.getValue().get("spotBid")).isEqualTo("0.07");
}