@Test
public void instanceGroupNotFound() {

    AgentInstance instance = createAgentInstance(INSTANCE_ID, "");
    when(agentManagementService.findAgentInstance(INSTANCE_ID)).thenReturn(Optional.of(instance));
    VirtualMachineCurrentState currentState = createVirtualMachineCurrentStateMock(INSTANCE_ID);
    AssignableVirtualMachine machine = createAssignableVirtualMachineMock(currentState);
    List<AssignableVirtualMachine> filteredMachines = machinesFilter.filter(Collections.singletonList(machine));
    assertThat(filteredMachines).isEmpty();
}