}
@Test
public void testAllOptions() throws Exception {
ServiceFactory factory = mock(ServiceFactory.class);
Service service = mock(Service.class);
when(factory.create((String) any())).thenReturn(service);
NodeMetadata node1 = new NodeMetadataImpl(null, "name1", "id1",
new LocationImpl(LocationScope.PROVIDER, "location-id1",
"location-desc1", null),
null, Collections.<String,String>emptyMap(), null, null, "image-id",
null, NodeState.RUNNING,