package io.gitlab.arturbosch.smartsmells.java;

/**
 * @author artur
 */
@SuppressWarnings("ALL")
public class MiddleManDummy {

	private ManInTheMiddle manInTheMiddle = new ManInTheMiddle();

	public String fakeLogic(String s) {
		return manInTheMiddle.middleLogic(s);
	}

	private class ManInTheMiddle {
		EndMan endMan = new EndMan();

		String middleLogic(String s) {
			return endMan.realLogic(s);
		}

		String middleLogic2(String s) {
			return endMan.realLogic(s);
		}

		String middleLogic3(String s) {
			return endMan.realLogic(s);
		}
	}

	private class EndMan {
		String realLogic(String s) {
			return s;
		}
	}
}

@@ -540,24 +540,607 @@
 s);%0A%09%09%7D%0A%09%7D%0A%0A
+%09/**%0A%09 * Interfaces with default methods look like Middle Man's but are only specifications%0A%09 * with some sugar for simple cases or as substitute for traits as example given here.%0A%09 * We will not treat them as MM because interfaces only do not justify the definition of MM.%0A%09 */%0A%09private interface InterfaceInTheMiddle %7B%0A%09%09EndMan endMan();%0A%0A%09%09default String middleLogic(String s) %7B%0A%09%09%09return endMan().realLogic(s);%0A%09%09%7D%0A%0A%09%09default String middleLogic2(String s) %7B%0A%09%09%09return endMan().realLogic(s);%0A%09%09%7D%0A%0A%09%09default String middleLogic3(String s) %7B%0A%09%09%09return endMan().realLogic(s);%0A%09%09%7D%0A%09%7D%0A%0A
 %09private cla

Add test case that interfaces are not middle man's - Closes#82