@Test
public void getfileConfigShouldReturnFileConfigWithValuesSortedByType() throws Exception {

	when(mockEditorConfig.getProperties("path")).thenReturn(Arrays.asList(
				new OutPair("charset", "utf-8"),
				new OutPair("end_of_line", "crlf"),
				new OutPair("indent_size", "4"),
				new OutPair("indent_style", "tab"),
				new OutPair("insert_final_newline", "true"),
				new OutPair("tab_width", "4"),
				new OutPair("trim_trailing_whitespace", "true")
			));
	final EditorFileConfig fileConfig = editorConfigService.getEditorConfig("path");
	assertThat(fileConfig.getConfigProperties(), contains(
				configPropertyWithType(INDENT_STYLE),
				configPropertyWithType(INDENT_SIZE),
				configPropertyWithType(TAB_WIDTH),
				configPropertyWithType(END_OF_LINE),
				configPropertyWithType(CHARSET),
				configPropertyWithType(TRIM_TRAILING_WHITESPACE),
				configPropertyWithType(INSERT_FINAL_NEWLINE)
			));
}