+ /**
+ * Test that the "lttng list" commands lists the expected events.
+ */
+ @Test
+ public void testListEvents() {
+ List<String> enabledEvents = session.listEvents();
+ List<String> expectedEvents = Arrays.asList(EVENT_NAME_A, EVENT_NAME_B);
+
+ Collections.sort(enabledEvents);
+ Collections.sort(expectedEvents);
+
+ assertEquals(expectedEvents, enabledEvents);
+ }
+