@Test
public void should_get_all_software_projects_ids() {

    Plan plan1 = new Plan();
    plan1.setKey("key1");
    plan1.setName("planName1");
    Plan plan2 = new Plan();
    plan2.setKey("key2");
    plan2.setName("planName2");
    List<Plan> plans = new ArrayList<Plan>();
    plans.add(plan1);
    plans.add(plan2);
    when(bamboo.findAllPlans()).thenReturn(plans);
    Map<SoftwareProjectId, String> projectIds = bambooConnection.listSoftwareProjectIds();
    assertEquals("planName1", projectIds.get(new SoftwareProjectId("key1")));
    assertEquals("planName2", projectIds.get(new SoftwareProjectId("key2")));
}