### Question:
PatternDemo { public boolean isFixedPhone(String str) { return fixedPhonePattern.matcher(str).matches(); }  boolean isFixedPhone(String str);  }### Answer:
@Test public void testPhone(){ PatternDemo patternDemo = new PatternDemo(); Assert.assertEquals(true, patternDemo.isFixedPhone("057188856923")); Assert.assertEquals(true, patternDemo.isFixedPhone("052188856923")); Assert.assertEquals(true, patternDemo.isFixedPhone("13989467221")); Assert.assertEquals(false, patternDemo.isFixedPhone("abc")); }