Как правильно написать контрольный пример с помощью Junit для этого метода SetScene?
public static void SetScene(int index){
root.getChildren().remove(liste.get(indexcurrent));
root.getChildren().add(liste.get(index));
indexcurrent=index;
if (index == 3) {
try {
root.setCenter(liste.get(index));
}
catch (Exception InvocationTargetException){
}
}
}