@Test
 public void testGetSelectedPodsEmpty() {
   PodList selectedPods = getClient().getSelectedPods(pod.getLabels());
   assertNotNull(selectedPods);
   assertNotNull(selectedPods.getItems());
   assertEquals(0, selectedPods.getItems().size());
 }
  private ReplicationController getReplicationController() {
    ReplicationController contr = new ReplicationController();
    contr.setId("kubernetes-test-controller");
    State desiredState = new State();
    desiredState.setReplicas(2);

    Selector selector = new Selector();
    selector.setName("kubernetes-test-controller-selector");
    desiredState.setReplicaSelector(selector);

    Pod podTemplate = new Pod();
    State podState = new State();
    Manifest manifest = new Manifest();
    manifest.setId(contr.getId());
    Container container = new Container();
    container.setName("kubernetes-test");
    container.setImage(dockerImage);
    Port p = new Port();
    p.setContainerPort(80);
    container.setPorts(Collections.singletonList(p));
    container.setCommand("tail", "-f", "/dev/null");
    manifest.setContainers(Collections.singletonList(container));
    podState.setManifest(manifest);
    podTemplate.setDesiredState(podState);
    podTemplate.setLabels(ImmutableMap.of("name", selector.getName()));

    desiredState.setPodTemplate(podTemplate);
    contr.setDesiredState(desiredState);
    contr.setLabels(podTemplate.getLabels());
    return contr;
  }
 @Test
 public void testGetSelectedPods() throws Exception {
   getClient().createPod(pod);
   PodList selectedPods = getClient().getSelectedPods(pod.getLabels());
   assertNotNull(selectedPods);
   assertNotNull(selectedPods.getItems());
   assertEquals(1, selectedPods.getItems().size());
 }