### Question:
ApplicationModel { public boolean hasProfileMapped() { return application.getProfileId() != null; } ApplicationModel(
            final ApplicationAPI applicationApi,
            final PageAPI pageApi,
            final ProfileAPI profileApi,
            final Application application,
            final MenuFactory factory); long getId(); String getApplicationLayoutName(); String getApplicationThemeName(); Long getApplicationThemeId(); String getApplicationHomePage(); boolean hasPage(final String pageToken); boolean authorize(final APISession session); boolean hasProfileMapped(); Page getCustomPage(final String pageToken); List<Menu> getMenuList();  }### Answer:
@Test public void should_check_that_application_has_a_profile_mapped_to_it() throws Exception { application.setProfileId(1L); assertThat(model.hasProfileMapped()).isEqualTo(true); application.setProfileId(null); assertThat(model.hasProfileMapped()).isEqualTo(false); }