@Test
public void getPropertyNameElementsWithoutAlias() {

    FactIdentifier factIdentifierMock = mock(FactIdentifier.class);
    String packageName = "com.package";
    String className = "ClassName";
    String propertyName = "propertyName";
    String aliasName = "AliasName";
    when(factIdentifierMock.getClassName()).thenReturn(className);
    List<String> retrieved = ScenarioSimulationUtils.getPropertyNameElementsWithoutAlias(Collections.singletonList(propertyName), factIdentifierMock);
    assertEquals(Collections.singletonList(propertyName), retrieved);
    when(factIdentifierMock.getClassName()).thenReturn(packageName + "." + className);
    retrieved = ScenarioSimulationUtils.getPropertyNameElementsWithoutAlias(Collections.singletonList(propertyName), factIdentifierMock);
    assertEquals(Collections.singletonList(propertyName), retrieved);
    when(factIdentifierMock.getClassName()).thenReturn(className);
    retrieved = ScenarioSimulationUtils.getPropertyNameElementsWithoutAlias(Arrays.asList(className, propertyName), factIdentifierMock);
    assertEquals(Arrays.asList(className, propertyName), retrieved);
    when(factIdentifierMock.getClassName()).thenReturn(packageName + "." + className);
    retrieved = ScenarioSimulationUtils.getPropertyNameElementsWithoutAlias(Arrays.asList(aliasName, propertyName), factIdentifierMock);
    assertEquals(Arrays.asList(className, propertyName), retrieved);
}