@Test
public void testGetCreateTopicBtnDto() {
JCUser currentUser = new JCUser("name", "email@example.com", "password");
currentUser.setLanguage(Language.ENGLISH);
UserReader userReader = mock(UserReader.class);
when(userReader.getCurrentUser()).thenReturn(currentUser);
ReadOnlySecurityService service = (ReadOnlySecurityService) ReadOnlySecurityService.getInstance();
service.setUserReader(userReader);
CreateTopicBtnDto createTopicBtnDto = new QuestionsAndAnswersPlugin().getCreateTopicBtnDto(1);
assertEquals("Ask Question", createTopicBtnDto.getDisplayNameKey());