-
- final DOMMountPoint mockMountPoint = mock(DOMMountPoint.class);
- when(mockMountPoint.getSchemaContext()).thenReturn(schemaContext);
- final DOMMountPointService mockMountPointService = mock(DOMMountPointService.class);
- when(mockMountPointService.getMountPoint(any(YangInstanceIdentifier.class)))
- .thenReturn(Optional.of(mockMountPoint));
-
- CONTROLLER_CONTEXT.setMountService(mockMountPointService);
- CONTROLLER_CONTEXT.setSchemas(schemaContext);