### Question:
CodeCompletionPreferences implements Serializable { public int getMaxLastSelectedCompletionNames() { return maxLastSelectedCompletionNames; }  int getGeneralCompletionConfig(); void setGeneralCompletionConfig(int generalCompletionConfig); PrefixedConfig[] getPrefixedConfigs(); void setPrefixedConfigs(PrefixedConfig[] prefixedConfigs); int getMaxLastSelectedCompletionNames(); void setMaxLastSelectedCompletionNames(int maxLastSelectedCompletionNames); boolean isShowRemarksInColumnCompletion(); void setShowRemarksInColumnCompletion(boolean b); static final int CONFIG_SP_WITH_PARARMS; static final int CONFIG_SP_WITHOUT_PARARMS; static final int CONFIG_UDF_WITH_PARARMS; static final int CONFIG_UDF_WITHOUT_PARARMS; }### Answer:
@Test public void testGetMaxLastSelectedCompletionNames() throws Exception { classUnderTest.setMaxLastSelectedCompletionNames(10); assertEquals(10, classUnderTest.getMaxLastSelectedCompletionNames()); }