AliyunAccount implements Account { @Override public AccountProvider getType() { return AccountProvider.ALIYUN; } AliyunAccount(String accessId, String accessKey); String getAccessId(); String getAccessKey(); @Override AccountProvider getType(); @Override RequestSigner getRequestSigner();  }
@Test public void testGetType() { AliyunAccount account = new AliyunAccount("a", "b"); assertEquals(account.getType(), AccountProvider.ALIYUN); }