### Question:
DefaultProfileService implements ProfileService { public List<Profile> getAllProfiles() throws ProfileException { return profileDao.getAllProfilesByName(); }  void updateProfile( Profile profile ); void updateProfileCheckDuplicateName( Profile profile, boolean checkDuplicateName ); Profile addProfile( Profile profile ); void deleteProfile( int profileId ); List<Profile> getAllProfiles(); Profile getProfile( int profileId ); void setBuilderInProfile( Profile profile, Installation builder ); void setJdkInProfile( Profile profile, Installation jdk ); void addEnvVarInProfile( Profile profile, Installation envVar ); void addInstallationInProfile( Profile profile, Installation installation ); void removeInstallationFromProfile( Profile profile, Installation installation ); Profile getProfileWithName( String profileName ); boolean alreadyExistsProfileName( Profile profile );  }### Answer:
@Test public void testGetAllProfile() throws Exception { List<Profile> all = getProfileService().getAllProfiles(); assertNotNull( all ); assertFalse( all.isEmpty() ); assertEquals( 2, all.size() ); }