@Test
public void instanceGroupSystemNoPlacement() {

    AgentInstance instance = createAgentInstance(INSTANCE_ID, INSTANCE_GROUP_ID);
    when(agentManagementService.findAgentInstance(INSTANCE_ID)).thenReturn(Optional.of(instance));
    AgentInstanceGroup agentInstanceGroup = createAgentInstanceGroup(INSTANCE_GROUP_ID, InstanceGroupLifecycleState.Active,
            Tier.Flex, Collections.singletonMap(SchedulerAttributes.SYSTEM_NO_PLACEMENT, "true"));
    when(agentManagementService.findInstanceGroup(INSTANCE_GROUP_ID)).thenReturn(Optional.of(agentInstanceGroup));
    VirtualMachineCurrentState currentState = createVirtualMachineCurrentStateMock(INSTANCE_ID);
    AssignableVirtualMachine machine = createAssignableVirtualMachineMock(currentState);
    List<AssignableVirtualMachine> filteredMachines = machinesFilter.filter(Collections.singletonList(machine));
    assertThat(filteredMachines).isEmpty();
}